R Job Script

From UFRC
Revision as of 11:36, 11 April 2015 by Magitz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 where the job was launched from
cd $PBS_O_WORKDIR

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

#Run R script 
R CMD BATCH myRscript.R