R

Description

R is a software environment for statistical computing and graphics.

See R’s home page and documentation for details.

Home Page

http://www.r-project.org/

Documentation

http://cran.r-project.org/manuals.html

License

R is available as Free Software under the terms of the Free Software Foundation’s GNU General Public License in source code form.

Usage

Use

# module avail R

to see which versions of R are available.

Use

# module load R/version

to get access to R.

The best way of running R in a script, is to use

# R CMD BATCH yourscript.R

or, if you do not want R to read and save .RData:

# R CMD BATCH --no-save --no-restore yourscript.R

For details see

# R CMD BATCH --help

Parallel jobs in R

There are many ways of parallelising jobs in R.  Since version 2.14.0, R comes with a package called parallel, which provides perhaps the simplest interface for setting up parallel jobs.

Install your own Packages

If you need to install additional packages for R you can do this by:

# R
# >
install.packages('package-name')

The package will be stored in $HOME/R/

Installed Packages

The following command lists all packages available:

# R
# > installed.packages()