Packages we will need:
library(installr)
library(installr)
According to the CRAN package for installr, “While for Linux users, the installation process of new software may be just running a short line of code, for the regular Windows user it often includes
- browsing online,
- finding the latest version,
- downloading it,
- running the installer, and
- deleting the installation file.
All of these steps are automatically done using functions in this package.”
Click here to read the CRAN documentation
installr::updateR()
The installr package offers a set of R functions for the installation and updating of software (currently, only on Windows OS), with a special focus on R itself. This package has two main goals:
- To make updating R (on windows) as easy as running a function.
- To make it as easy as possible to install all of the needed software for R development (such as git, RTools, etc),
So voila! The easy way to update R!