Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does apt-get install r-base install 3.2.3 instead of 3.4.0 in R?

Tags:

linux

r

I am trying to install the latest version of R (3.4.0) due to some incompatibility issues with dowloading of a package called "Slam". I have downloaded the tar.gz file of 3.4.0 but there are some issues with the make file for installation.

I have uninstalled the r-base of 3.2.3. Now when I'm installing R again, I get the same version instead of the upgrade version. I even ran the sudo apt-get update command but in vain.

like image 449
BlackSwan Avatar asked Jun 17 '17 12:06

BlackSwan


People also ask

How do I install a base in R?

Step 1: Open Ubuntu Software Center. Step 2: Search for r-base. Step 3: Click install.

How do I change R version in Ubuntu?

To change the current version of R. Framework, you can either: Run the installer from CRAN for the R version you want to be current. Use the RSwitch utility available at: https://rud.is/rswitch/


1 Answers

you need to install from the CRAN repos not the ubuntu ones. add the key, then the repository, update and the apt-get

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

sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

sudo apt-get update

sudo apt-get install r-base
like image 178
Phi Avatar answered Nov 30 '22 23:11

Phi