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:
In order to configure your environment for the usage of R, run the following command:
module load R
Once your environment is configured, R can be started simply by entering the following command:
For a listing of command line options, run:
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 test.R test.Rout cp test.Rout $PBS_O_WORKDIR