Update R from within the console
A useful protocol for updating the R statistical package from within the R console window.
One of the chief limitations of the R statistical package is the difficulty experienced in applying updates on Windows machines. Thankfully a package called “InstallR” has been developed to enable a relatively seamless upgrade of versions.
Installing InstallR
If the InstallR package has not been previously installed, enter the following into the RGui:
if(!require(installr)) {install.packages("installr"); require(installr)}
Then enter:
updateR()
A check will be performed to ascertain whether an upgrade is required:
An opportunity to view the “News” regarding the update will be offered. This is optional and will lead to a browser window pop-up if accepted.
An option to install the latest version of R will then be given:
The software is then downloaded from the CRAN server:
A language option is provided at set-up:
Once complete, the older version of R can be deleted from the hard drive (the new version will be installed in parallel).
If InstallR is already installed
If InstallR is already installed from within R and you wish to check for an update, enter the following command:
library(installr)
updateR()
Comments
No comments have yet been submitted. Be the first!