J'ai essayé sans succès d'installer la dernière version (2.15.2) de r-base . Apparemment, R paquet Rcpp
ne s'installerait pas pour R version 2.14.1 - la version qui s'installe pour moi.
Je ne sais pas quoi/comment/où modifier mes tentatives d'installation qui apparaissent ci-dessous. Veuillez noter que j'utilise ubuntu-12.04.1-server-i386.
La version actuellement installée est la version 2.14.1 de R (2011-12-22) :
$ sudo apt-get install r-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
r-base is already the newest version.
Inclure les informations de version n'aide pas :
$ sudo apt-get install r-base=2.15.1-5ubuntu1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '2.15.1-5ubuntu1' for 'r-base' was not found
Modifications basées sur les instructions CRAN Ubuntu de http://cran.r-project.org/bin/linux/ubuntu/README :
-
Ajouté à
/etc/apt/sources.list
deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu quantal/
-
Mettre à jour et installer
$ sudo apt-get update $ sudo apt-get install r-base Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: r-base : Depends: r-base-core (>= 2.15.2-1quantal2) but it is not going to be installed Depends: r-recommended (= 2.15.2-1quantal2) but it is not going to be installed Recommends: r-base-html but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Meilleure réponse
Aucune des réponses ci-dessus n'a fonctionné pour moi, je copie donc la réponse de https://stackoverflow.com/questions/16093331/how-to-install-r-version-3-0
Désinstallez l'ancien R :
sudo apt-get remove r-base-core
Ensuite :
sudo add-apt-repository "deb http://cran.rstudio.com/bin/linux/ubuntu $(lsb_release -sc)/"
Puis copiez/collez ces commandes dans la ligne de commande :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository ppa:marutter/rdev
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install r-base
Ce qui a fonctionné pour moi