Install a specific version (2.15.2) of the r-base on ubuntu

I am new to Ubuntu and R.

I am trying to install R 2.15.2 on ubuntu. Since the latest version of R is 3.0.X, I specified the version in /etc/apt/sources.list

deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu exact 2.15.2

Then I ran sudo apt-get install r-base.

It installs, but when I check the version, it is 2.14.1, not 2.15.2

I tried to specify the version on the command line, for example:

sudo apt-get install r-base_2.15.2_1precision1

Always see:

E: cannot find package r-base_2.15.2_1precision1 E: Could not find package using regex 'r-base_2.15.2_1precision1'

Any suggestion? Thanks.

If I run the command:

sudo apt-get install r-base = 2.15.2-1precise0

See the following message:

The following packages have unsatisfied dependencies: r-base: Depends: r-recommended (= 2.15.2-1precise0), but 3.0.1-1precise0precise2 should be installed Recommended: r-base-html, but it will not be installed

+4
source share
2 answers

Find a solution.

I need to install as:

sudo apt-get install r-base-core=2.15.3-1precise0precise1 sudo apt-get install r-recommended=2.15.3-1precise0precise1 sudo apt-get install r-doc-html=2.15.3-1precise0precise1 sudo apt-get install r-base=2.15.3-1precise0precise1 
+7
source

So, the URL where the packages are found has changed: ^) on cran.ma:

Change the debian url to:

deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu precise/

do apt-get update and try reinstalling

Complete instructions:

http://cran.ma.imperial.ac.uk/bin/linux/ubuntu/

+1
source

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


All Articles