Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating R to 3.2 from 3.02

I am on Linux Mint. I have 3.0.2 version of R installed. I need to use library which was just released and requires R version of 3.2. http://www.bioconductor.org/packages/devel/bioc/html/CODEX.html

What would I do to update my R version to 3.2?

I've tried to add some repositories to apt, but then not only it tries to install R 3.1.2, but installation itself does not work.

The following packages have unmet dependencies:
 r-base : Depends: r-base-core (>= 3.1.2-1precise0) but 3.0.2-1ubuntu1 is to be installed
          Depends: r-recommended (= 3.1.2-1precise0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Then I've tried to compile 3.2 from source, but running configure gives the following error:

configure: error: --with-readline=yes (default) and headers/libs are not available

Can anyone advice?

like image 227
YKY Avatar asked Feb 26 '15 15:02

YKY


1 Answers

I found good instructions on how to update R here: https://askubuntu.com/questions/218708/installing-latest-version-of-r-base

In my case running:

sudo apt-get remove r-base-core

Before installing new version of R helped. However, this only allows me to install R 3.1.2, which does not solve my problem completely.

like image 61
YKY Avatar answered Sep 18 '22 05:09

YKY