Difference between revisions of "R Job Script"

From UFRC
Jump to navigation Jump to search
m (Moskalenko moved page R PBS to R Job Script)
(No difference)

Revision as of 21:49, 20 July 2016

#!/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 current working directory if inside a job
if [[ -d $PBS_O_WORKDIR ]]; then cd $PBS_O_WORKDIR; fi

#Record the time and compute node the job ran on
date; hostname
#Use modules to load the environment for R
module load R

#Run R script 
Rscript myRscript.R