Install the latest R version on ubuntu 16.04

So, I tried to install R (after restoring ubuntu on my system) using the following command:

sudo apt-get install r-base-core
sudo apt-get install r-recommended

      

It installs R 3.2, but the latest version of R currently available for use is R 3.4, any idea why it doesn't install R 3.4?

I recently installed R.3.4 manually, it works great. just curious to know why it wasn't installed in the first place using the command.

+3


source to share


2 answers


It installs 3.2 because it is the default in Ubuntu 16.04 repository. If you want the most up-to-date version of R for Ubuntu, it's best to follow the instructions on the cran for R on Ubuntu page .



+7


source


Follow these steps:

  • Add this entry deb https://cloud.r-project.org/bin/linux/ubuntu xenial/

    to your /etc/apt/sources.list

    file.

  • Run this command in the shell: sudo apt-key adv --keyserver eyserver.ubuntu.com --recv-keys E084DAB9

    .

  • Upgrade and Installation: sudo apt update; sudo apt install r-base

    .



I wrote a post that explains each step in detail; here's the link .

+4


source







All Articles