How to update your RStudio version with one function (from the installr package)

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:

  1. To make updating R (on windows) as easy as running a function.
  2. 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!

Leave a comment