Skip to content
Related Articles

Related Articles

How to Upgrade R Installation to R 4.0 on Windows?
  • Difficulty Level : Expert
  • Last Updated : 12 Jan, 2021

R is a programming language and free software environment for statistical computing and graphics supported by the R Foundation for Statistical Computing. The R language is heavily utilized by analysts and data engineers/miners for creating statistical software and data/info analysis. This article will serve as a step-by-step guide to update your existing version of the R Language on Windows.

Step by Step Implementation

Step 1: Check your existing installation version by heading over to RStudio and typing the version in the console. This should give you the information about your major and minor R installed versions. Something like this:

As we can see here the initial installed version was R 3.6.3

Step 2: Head over to RGui, (remember do not go to RStudio, search for RGui in your Windows Start Menu). Install and load a package called installr, using these commands:

R

filter_none

edit
close

play_arrow

link
brightness_4
code

# Install the *installr* package
install.packages("installr")
  
# Load the package
library("installr")

chevron_right


Step 3: Simply run the command installr::updateR() and wait for the Information Dialogue Box to show up.



R

filter_none

edit
close

play_arrow

link
brightness_4
code

# The below command will check your 
# installed version against the latest 
# version available and will show you 
# an information dialogue box
installr::updateR()

chevron_right


Prompt received after writing updateR()

Step 4: Navigate through all the installation procedures as shown below:

Step 4.1: If you like to keep yourself spam-free, then press No.

Step 4.2: Click on Yes, if you want to update your R installation version

Step 4.3: Unless you have a new and clean installation, definitely click on Yes



Step 4.4: If you weren’t working on production-grade projects at the time, then press No.

Step 4.5: This is related to RShiny. Click on Yes.

Step 4.6: Although the packages should have backward compatibility, still click on Yes.

Step 5: After all the installation is done, close your RGui and head back to RStudio and again run the command version to check whether your R installation has been updated or not. 

Type version in the RStudio console and as is visible here, we have upgraded to R 4.0.3

Congratulations!! You have successfully upgraded your R installation to the newest R version available. Now go on ahead and write some awesome R scripts.

My Personal Notes arrow_drop_up
Recommended Articles
Page :