R

R is a language and environment for statistical computing and graphics. It is similar to the S language and environment developed at Bell Laboratories (formerly AT&T, now Lucent Technologies). R provides a wide variety of statistical and graphical techniques, and is highly extensible.

Availability & Restrictions

R is available to all OSC users without restriction.

The following versions of R are available on OSC systems: 

Version Glenn Oakley
2.5.1 X  
2.8.0 X  
2.11.1 X  
2.14.1   X
2.15.0 X X
2.15.2 X X
3.0.1 X X

Usage

Set-up

In order to configure your environment for the usage of R, run the following command:

module load R

Using R

Once your environment is configured, R can be started simply by entering the following (rediculously short) command:

R

For a listing of command line options, run:

R --help

Batch Usage

Running R interactivly is not recommended and may violate OSC usage policy. In order to run R in batch, refrence the example batch script below. This script requests one full node on the Oakley cluster for 1 hour of walltime.

#PBS -N R_ExampleJob
#PBS -l nodes=1:ppn=12

module load R
cd $PBS_O_WORKDIR
cp in.dat $TMPDIR
cd $TMPDIR

R CMD BATCH in.dat out.dat

cp out.dat $PBS_O_WORKDIR

Further Reading

See Also

Supercomputer: 
Service: 
Fields of Science: