GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Installazione dell'ultima versione di R-base?

Ho tentato senza successo di installare l'ultima versione (2.15.2) di r-base . Apparentemente, R pacchetto Rcpp non installerebbe per la versione R 2.14.1, la versione che installa per me.

Non sono sicuro di cosa/come/dove modificare i miei tentativi di installazione che appaiono di seguito. Tieni presente che sto usando ubuntu-12.04.1-server-i386.

La versione attualmente installata è la versione R 2.14.1 (22-12-2011):

$ sudo apt-get install r-base
Reading package lists... Done
Building dependency tree       
Reading state information... Done
r-base is already the newest version.

Includere le informazioni sulla versione non aiuta:

$ 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

Modifiche basate sulle istruzioni CRAN Ubuntu da http://cran.r-project.org/bin/linux/ubuntu/README:

  1. Aggiunto a /etc/apt/sources.list

    deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/ubuntu quantal/
    
  2. Aggiorna e installa

    $ 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.
    

Migliore risposta

Nessuno dei precedenti ha funzionato per me, quindi sto copiando la risposta da https://stackoverflow.com/questions/16093331/how-to-install-r-version-3-0

Disinstalla la vecchia R:

sudo apt-get remove r-base-core

Quindi:

sudo add-apt-repository "deb http://cran.rstudio.com/bin/linux/ubuntu $(lsb_release -sc)/"

Quindi copia/incolla questi comandi nella riga di comando:

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

Che ha funzionato per me


Ubuntu
  1. Installazione dello stack ELK su Ubuntu 14.04

  2. 3 diversi metodi per aggiornare Ubuntu all'ultima versione

  3. Installare la versione a 32 bit di Skype su Ubuntu 16.04?

  4. Installazione del driver Fglrx Ubuntu?

  5. Aggiorna Gnome-shell in Ubuntu12.04?

Come installare l'ultima versione di Git su Ubuntu

Come installare l'ultimo WildFly su Ubuntu 20.04

Come ottenere l'ultima versione di vim su Ubuntu 20.04?

Come aggiornare Apache all'ultima versione su Ubuntu 20.04

Ubuntu 20.04 Installazione dei driver Nvidia?

Installa l'ultima versione di Java su Ubuntu 18.04