Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Installing R statistical package in Ubuntu 12.04.2

  1. #1
    Join Date
    Dec 2010
    Beans
    34

    Installing R statistical package in Ubuntu 12.04.2

    Hello all. I am in need of help to install R statistical package. I have googled and read some and copy pasted some of the terminal commands. But it ended nowhere and I still have no "R". If somebody can point me towards a place where simple explanations are given, that will be awesome. Thanks
    Last edited by havtrouble; August 21st, 2013 at 04:53 AM.

  2. #2
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Installing R statistical package in Ubuntu 12.04.2

    Which ubuntu release are you using ?
    http://cran.r-project.org/bin/linux/ubuntu/README :
    As of March 25, 2013, the supported releases are Raring
    Ringtail (13.04), Quantal Quetzal (12.10), Precise Pangolin (12.04; LTS),
    and Lucid Lynx (10.04; LTS).
    Edit :
    Doh, ignore, it's in your title >.<

    r-base packages are in universe, do you have this repo enabled ?

    http://www.r-project.org/
    Last edited by bapoumba; August 20th, 2013 at 03:33 PM.

  3. #3
    Join Date
    Dec 2010
    Beans
    34

    Re: Installing R statistical package in Ubuntu 12.04.2

    You wrote,
    r-base packages are in universe, do you have this repo enabled ?

    http://www.r-project.org
    That is exactly the trouble. How do I have this repo enabled?

  4. #4
    Join Date
    Apr 2012
    Beans
    4,596

    Re: Installing R statistical package in Ubuntu 12.04.2

    Instructions for adding repositories here --> https://help.ubuntu.com/community/Repositories/Ubuntu

    It's a little tricky to search for a package called 'R' but you can list the available packages from the command line using

    Code:
    apt-cache search --names-only ^r-

  5. #5
    Join Date
    Aug 2013
    Beans
    1,287

    Re: Installing R statistical package in Ubuntu 12.04.2

    Install synaptic.

    Code:
    sudo apt-get install synaptic
    Then open it and search "r-cran"
    It is an outdated version though, if you want R 3.0.1 add this ppa
    https://launchpad.net/~marutter/+archive/rrutter

    Open synaptic, go to Settings > Repositories > Other software, press Add and enter in the box
    Code:
    ppa:marutter/rrutter
    Then reload synaptic (click the "Reload" button)

    You need actually only install r-base and r-recommended and the dependencies, the rest I would install from within R.

  6. #6
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Installing R statistical package in Ubuntu 12.04.2

    Just to make sure, please post your sources.list:
    cat etc/apt/sources.list

  7. #7
    Join Date
    Dec 2010
    Beans
    34

    Re: Installing R statistical package in Ubuntu 12.04.2

    Thanks monkeybrain20122. I have done
    sudo apt-get install synaptic
    and then opened the synaptic and done
    ppa:marutter/rrutter
    What happens next? Sorry for being so dumb.

  8. #8
    Join Date
    Apr 2011
    Location
    Maryland
    Beans
    1,461
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Installing R statistical package in Ubuntu 12.04.2

    Quote Originally Posted by monkeybrain20122 View Post
    Install synaptic.

    Code:
    sudo apt-get install synaptic
    Then open it and search "r-cran"
    It is an outdated version though, if you want R 3.0.1 add this ppa
    https://launchpad.net/~marutter/+archive/rrutter

    Open synaptic, go to Settings > Repositories > Other software, press Add and enter in the box
    Code:
    ppa:marutter/rrutter
    Then reload synaptic (click the "Reload" button)

    You need actually only install r-base and r-recommended and the dependencies, the rest I would install from within R.
    That's nice! I usually just follow the instructions here to install:

    http://cran.r-project.org/bin/linux/ubuntu/README

    I didn't think to look for Michael Rutter's Launchpad page, and I usually have to go through the extra PGP key signing step listed in there. I'm going to have to remember this Lauchpad page for future reference!

    To the OP: once you've added that PPA to the list in Synaptic, just refresh the software cache, look for r-base, and then you should be able to install it.

  9. #9
    Join Date
    Dec 2010
    Beans
    34

    Re: Installing R statistical package in Ubuntu 12.04.2

    Thank you all I have it now.

  10. #10
    Join Date
    Aug 2013
    Beans
    1,287

    Re: Installing R statistical package in Ubuntu 12.04.2

    Quote Originally Posted by drmrgd View Post
    That's nice! I usually just follow the instructions here to install:

    http://cran.r-project.org/bin/linux/ubuntu/README

    I didn't think to look for Michael Rutter's Launchpad page, and I usually have to go through the extra PGP key signing step listed in there. I'm going to have to remember this Lauchpad page for future reference!

    To the OP: once you've added that PPA to the list in Synaptic, just refresh the software cache, look for r-base, and then you should be able to install it.
    Yeah Michael told me that all packages in Cran's Ubuntu repository are from his ppa except they are older builds, so unless for some reasons you want an older version he recommends using the ppa.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •