R Job Script

From UFRC
Revision as of 11:40, 11 April 2015 by Magitz (talk | contribs)
Jump to navigation Jump to search
#!/bin/bash
#
#PBS -N R-demo
#PBS -M YOUREMAIL@ufl.edu
#PBS -m abe
#PBS -o R_demo.$PBS_JOBID.out
#PBS -j oe
#PBS -l nodes=1:ppn=1
#PBS -l pmem=1gb
#PBS -l walltime=00:05:00
#

#Change to the directory from which the job was launched.
cd $PBS_O_WORKDIR

#Use modules to load the environment for R
module load R

#Run R script 
R CMD BATCH myRscript.R