A step by step (screenshots) tutorial for upgrading R on Windows

June 15, 2015
By

(This article was first published on R-statistics blog » R, and kindly contributed to R-bloggers)

tl;dr

If you are running R on Windows you can easily upgrade to the latest version of R using the installr package. Simply run the following code:

# installing/loading the latest installr package:
install.packages("installr"); library(installr) # install+load installr
 
updateR() # updating R.

Running “updateR()” will detect if there is a new R version available, and if so it will download+install it (etc.). just press “next”, “OK”, and “Yes” on everything…

A GUI interface to updating R on Windows

Starting from installr version 0.15.0, the upgradingprocess can be done with a click-on-menus GUI interface. Here is how to use it.

Step 1: load installr

# installing/loading the latest installr package:
install.packages("installr") # install installr
library(installr) #load

Step 2: pick “update R” from the new “installr” menu

s02

Step 3: installr will check and detect that there is a new version of R for you – click “OK”

s03

Step 4: if you wish to check the NEWS of the new R version – click “Yes” and a browser window will open up with this information

s04

Step 5: if you want to download and install the latest R version, press “Yes”

s05

Step 6: wait for R to download

s06

Step 7: press “next” in R’s installation wizard

s07

Step 8: wait R finishes to get installed

s08

Step 9: Press “Yes” to copy your packages to the new R installation (press No, if you intend to use the “global R library folder” strategy)

s09

Step 10: to keep package in your old R folder, press “Yes” (this is safest)

s10

Step 11: wait while the packages get copied

s11

Step 12: you can also have Rprofile.site be copied automatically to the new location

s12

Step 13: you may press “Yes” to get update packages in the new R installation

s13

Step 14: if you have a firewall, R may ask to get access to the internet

s14

Step 15: while the packages are updated, you will need to wait. A hidden Rscript process will run in the background and update the packages

s15

Step 16: once it is all done, you will be offered to quit R (sure, why not)

s16

 

That’s it.

Feedback

I try to keep the installr package updated and useful, so if you have any suggestions or remarks on the package – you are invited to leave a comment below, or report an issue on github.

To leave a comment for the author, please follow the link and comment on their blog: R-statistics blog » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)