How to keep R and RStudio up to date?

Besides removing your current version(s) and installing from scratch a new version (including the R packages that you use), you can do the following:

  • RStudio : select Check for Updates in the Help menu.
  • R, but only for MS Windows users: use the following code to update R from within RStudio:
    install.packages("installr")
    library(installr)
    updateR()

    You have downloaded the latest version with this, but RStudio does not automatically use this newest version; it continues to use the old version. To make RStudio use the new version, follow the following steps:
    • Go to Tools > Global Options;
    • Click on the Change button next to R version;
    • Select the latest version;
    • Close RStudio and open it again (if RStudio doesn't do this automatically);
    • Check the startup screen to ensure you are indeed using the latest version.
Unlock full access  unlock