Table des matières

Installation of R 2.11.1

Additional libraries

No additional library is necessary.

Procedure

Installing R

% sudo su
% echo "deb http://www.probability.ca/cran/bin/linux/ubuntu lucid/" >> /etc/apt/sources.list
//
// You also need to uncomment this line in /etc/apt/sources.list:
// deb http://ca.archive.ubuntu.com/ hardy-backports main restricted universe
//
% gpg --keyserver subkeys.pgp.net --recv-key E2A11821
% gpg -a --export E2A11821 | sudo apt-key add -
% exit
% sudo apt-get update
% sudo apt-get install r-base r-base-dev

Installating the Rserve server

Installation of a R GUI

There are many GUI for R but the one I chose is JGR. To install JGR, simply follow this recipe:

% sudo R javareconf
% sudo R
// We are in the R console at system-level
> install.packages('JGR')
// R will ask for a mirror selection
// Install will proceed simply enough. Give it a try:
> library(JGR)
> JGR()
// You should see a R console popping onto your dekstop
// with buttons, menus and everything else
% sudo ln -s /usr/local/lib/R/site-library/JGR/scripts/run /usr/local/bin/runRGui
% runRGui