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

I am trying to install the latest version of R (3.4.0) due to some incompatibility issues with downloading a package called "Slam". I downloaded the tar.gz file from 3.4.0, but there are some problems with the make file to install. I deleted the r-base 3.2.3. Now when I install R again, I get the same version instead of the update version. I even ran the sudo apt-get update command, but in vain. Help in this matter will be appreciated.

+4
source share
1 answer

you need to install from the CRAN repository, not from ubuntu. add key then repository update and 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
+8
source

Source: https://habr.com/ru/post/1679512/


All Articles