0

Install R under Ubuntu Jaunty (v9.04)

Posted by Derek Jing on 12:33 PM in , , ,
If installing from Ubuntu 'official' repository, search with 'CRAN' in Synaptic Package manager, and install components that you want.

Below guide is for installing R from 'third party' repository, which may gives newer release of R.
  1. Add pubkey
    $ gpg --keyserver keyserver.ubuntu.com --recv D67FC6EAE2A11821
    $ gpg --export --armor D67FC6EAE2A11821 | sudo apt-key add -

  2. Add repositories
    • Method 1:
      System >> Administration >> Software Sources
      Fill in 'deb http:///bin/linux/ubuntu jaunty/'
      where can be such as 'http://cran.opensourceresources.org/ '

    • Method 2:
      $ sudo gedit /etc/apt/sources.list
      add 'deb http:///bin/linux/ubuntu jaunty/'

  3. Install complete R system
    $ sudo apt-get update
    $ sudo apt-get install r-base

    Users who need to compile R packages from source [e.g. package maintainers, or anyone installing packages with install.packages()] should also install the r-base-dev package:
    $ sudo apt-get install r-base-dev

0 Comments

Post a Comment

Copyright © 2009 Derek's Technical Notes All rights reserved.