Skip to content

Upgrading R

Chris Grandin edited this page Dec 14, 2020 · 1 revision

Here's the fastest way to upgrade R and all it's packages. R is updated frequently

Assuming your R distribution is installed in C:\R

Make a copy somewhere outside your R directory of your C:\R\etc\Rprofile.site file

Rename C:\R\library to C:\R\library-old

Install new version of R over the old one (no need to remove old version if in the same path)

Copy everything in C:\R\library-old into the new C:\R\library, skipping same-name directories

Delete C:\R\library-old

Overwrite the C:\R\etc\Rprofile.site file with the one you made a copy of earlier

Open R and make sure you are running the new version:

R.Version()

Once satisfied it’s installed right, run this:

update.packages(ask = FALSE)

Clone this wiki locally