#PBS -l nodes=1:ppn=1
#PBS -l walltime=336:00:00
#PBS -r n
#PBS -V
#PBS -p 1023
#PBS -j oe

# the job script will reside in a subdirectory from which the job will run
cd "${PBS_O_WORKDIR}"/../R

# this didn't work -- it picks up the name of a shared library used by pbs
#progname=`basename $0`

R CMD BATCH --no-save --quiet "${PBS_O_WORKDIR}"/"${PBS_JOBNAME}".R ../out/"${PBS_JOBNAME}"
