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?)
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).
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 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.
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.
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?
Gabor Grothendieck has a package 'batchfiles' on Google Code as well as in CRAN's extra directory which does this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With