R

R is a free software environment for statistical computing and graphics. The cluster nodes do not generally have interactive graphics, so any graphics you normally produce with R should be saved to a file that you can review later.

To load the R environment, type:

module load R
You also should put your R commands into a script.

Once you have an R script (called R.input below) for your problem, you can create a PBS script and submit that to the cluster. For example:

#PBS -N my-R-job
#PBS -q route
#PBS -l nodes=1,walltime=24:00:00
#PBS -M your-email-address
#PBS -m abe
#PBS -V
#
echo "I ran on:"
cat $PBS_NODEFILE
#
#cd to your execution directory first
cd /home/your-user-name
#
#
R < R.input

The items in bold should be changed to suit you and your task. If you save that script with, for example, the name r.pbs (you should chose a name that has some meaning for you) you can then submit it with the command:

qsub r.pbs

For information on using R in parallel, please see the R/Snow page.

For more information on PBS, please see the PBS page.