Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (6.1k points)
edited by

I am pretty much new to Linux. I have Linux mint 18.1. and installed R using system software manager. My current R version is 3.2, but I want to upgrade it to version 3.4.

How to do it?

1 Answer

0 votes
by (11.7k points)

Upgradation in Linux is pretty simple using terminal.

Step 1: Visit the list of CRAN Mirrors and search for the nearest URL of the mirror as per your location. Commands down below in the terminal assume you choose http://cran.wustl.edu/

Step 2: Enter the following commands in the terminal.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

sudo echo "deb http://cran.wustl.edu/bin/linux/ubuntu xenial/" | 

sudo tee -a /etc/apt/sources.list 

sudo apt update 

sudo apt upgrade r-base r-base-dev 

sudo apt update sudo apt upgrade

Caution: 

Kindly make sure to install r-base and r-base-dev in case you have not, because these are also listed in the commands to upgrade for better convenience. 

Command to install it: 

 sudo apt install r-base-dev

Step 3:

Restart R  and run the command down below:

update.packages(checkBuilt=TRUE, ask=FALSE)

Now you can use it.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...