Difference between revisions of "R Job Script"

From UFRC
Jump to navigation Jump to search
(Created page with "<source lang=bash> #!/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 w...")
 
Line 12: Line 12:
 
#
 
#
  
#Change to the directory where the job was launched from
+
#Change to the directory from which the job was launched.
 
cd $PBS_O_WORKDIR
 
cd $PBS_O_WORKDIR
  

Revision as of 11:40, 11 April 2015

#!/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