R, RTools, Packages, and RStudio keep up to date

Installr Package for the R development environment R, RTools, Packages, and RStudio keep up to date

In order to keep the programming language R, the packages and RStudio currently, the Package “installr”. With this installed components in the console update.

Company to the topic

With RTools is it possible to install Packages from sources, and to create yourself.With RTools is it possible to install Packages from sources, and to create yourself.

(Image: Joos / RStudio, PBC)

To work with R, use, many developers RStudio and use extensions in the Form of “Packages”. These components should be kept up to date, as well as the programming language itself. The Tools you need to Create your own Packages should be available on the computer and updated regularly.

RTools allow you to Create your own packages and the Installation of Source Packages. We show below how the components in the console, checked and may be updated. We go on the R, RTools, RStudio, and the associated Packages.

RTools – Own Packages with R create

With RTools is it possible to install Packages from sources, and to create yourself.With RTools is it possible to install Packages from sources, and to create yourself.

(Image: Joos / RStudio, PBC)

For outstaffing working with Packages, it makes sense that the RTools installed. With RTools Packages can be created. Also, the Installation of Packages from sources with RTools possible.

From RStudio out on the Tools of the RTools package can be accessed, should be added to the commands in the installation directory of RTools to the path in Windows. To do this, the developers recommend a text file ” .Renviron“ with the contents of…


to create … in the document directory. The registration can also be made directly in R and RStudio with the following command:

writeLines('PATH="${RTOOLS40_HOME}usrbin;${PATH}"', con = "~/.Renviron")

After the restart of R and RStudio with the following command to check whether the path is correctly registered:


Here is the path to the file is displayed “make.exe”. If the Tools work, it can be checked by a package can be installed from Source:

install.packages("jsonlite", type = "source")

Installr for updates

With the Package With the Package “installr” let R and the Packages within RStudio update.

(Image: Joos / RStudio, PBC)

In order to keep R, Packages, and RStudio currently, it is used the Package “installr”. The operations can also manually trigger however, installr offers the advantage that in a process R updated and all the Packages can be accepted in the new Version. The update of the Packages can also be this way made. All the steps can be individually confirmed, so that no undesirable actions to be performed.

The necessary installr package with …


… in RStudio integrated and then …


… activated. After the Installation, the Verification of the installed R can be shown through:


The window is then installed and the latest Version of R is to be seen. On request, the information can be displayed page of the new R Version, and R are updated. If R is currently, the console displays the value “FALSE”.

Before the upgrade of R, the RStudio displays the message that the update should be in RGUi and not in RStudio carried out. This message can be confirmed with “no”. After that, the installation wizard starts and installed the new R Version.

The successful update with updateR() check. Which Version to use RStudio in the future, is controlled in the “ToolsGlobal Options”. Manually here, the new Version needs to be selected, the operation is not performed automatically.

Packages in new R-Version and update

Updating Packages in a new installed R Version.Updating Packages in a new installed R Version.

(Image: Joos / RStudio, PBC)

In the framework of the upgrade of R “installr”, a message will appear, whether the Packages from the old Version to be incorporated into the new Version. This message is confirmed with “Yes”. Then it can be selected whether the Packages are to be preserved in the old Version or deleted.

In this process, no update of the package, packages are held here only the data to be transferred will remain on request, but also in the old Version available.

In General, it is useful to have the Packages for a period of time to ensure that there is a problem. After the Acquisition of the Packages can be updated via the wizard the Packages.

In the framework of updating the RGui, the new Version can be called. Generally speaking, after some time, the old R should be uninstalled Version. After a restart of R, the new Version should be displayed as the Version used in RStudio, if the Version is selected in the options.

In the console the installed Packages with …


… be displayed. Obsolete Packages with shows in the Console:


… in turn, packets coming from known sources updated when new versions are available. To be able to update without any user interaction to perform, add the following to the prompt “ask = FALSE” in the parentheses:

update.packages(ask = FALSE)

Only a private Package to be updated, the “install.packages“, for example:


RStudio update

Upgrade RStudio.Upgrade RStudio.

(Image: Joos / RStudio, PBC)

RStudio can be either via the “installr” or via the menu item “HelpCheck for Updates” to update. With the function “install.Rstudio()“ is updated RStudio via the console. However, the function does not check whether the Version is already up to date, but always installed the new Version over the existing Version.

If not available on the computer, you will also install the R programming language itself.If not available on the computer, you will also install the R programming language itself.

(Image: Joos / RStudio, PBC)

Who “does not want to use installr”, but better to manually its surroundings wants to update, you must perform the steps manually. To do this, first download the latest Version of R for the developers and installed. The Packages can be manually from the old R-directory in the new directory to be copied. The Packages are located in the “library”directory.


Ready to see us in action:

More To Explore

Enable registration in settings - general
Have any project in mind?

Contact us: