R Job Script
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