Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to optimaly upgrade RStudio and R and keep project files and all setup (Windows machine)?

Tags:

r

Many people use R and RStudio and they need to keep up with upgrades.

If one wants all RStudio projects to be "remembered". Is is possible? A seamless upgrade of both....

Should one first install new R version and then install RStudio into the same folder. (what is the best order of steps?)

like image 634
userJT Avatar asked Nov 26 '12 15:11

userJT


People also ask

How do I upgrade R from RStudio to Windows?

If you want to update R and RStudio: One way is to run the actual R program. There, you can go to the “R” menu and click “Check for R Updates” (see image below). If you do that, R will tell you the current version you're on, and whether or not there is a more updated version that you can download (circled in blue).

How do I update R and RStudio?

Upgrading your version of R If you decide to upgrade your version of R, simply choose a CRAN mirror in the download page and follow the procedure you used to initially download and install R. The installation will automatically install the new version and make it available within RStudio.

How do I upgrade my version of R?

How to Update R. The easiest way to update R is to simply download the newest version. Install that, and it will overwrite your current version. There are also packages to do the updating: updateR for Mac, and installr for Windows.

Do R and RStudio have separate updates?

RStudio and R cannot update on their own because some packages may not work after switching to the new version (You can still downgrade R version in RStudio if something went wrong though). After you install the new version, the previously installed packages will not go to next version.


2 Answers

Updating RStudio is no problem. You just go to Help > Check updates in the menu, and RStudio will take care of the rest. It also recognizes the latest installed R version on your computer, so just installing the new R should suffice for that. Note that project files are saved on your computer, and can of course be opened with the new version of RStudio you installed.

Regarding keeping the settings for your R version, see eg:

Painless way to install a new version of R?

like image 185
Joris Meys Avatar answered Sep 27 '22 22:09

Joris Meys


Gabor Grothendieck has a package 'batchfiles' on Google Code as well as in CRAN's extra directory which does this.

like image 23
Dirk Eddelbuettel Avatar answered Sep 27 '22 20:09

Dirk Eddelbuettel