#!/bin/bash -l # Submit job with the command: qsub Rjob # To view the status of the job: qstat -u username # Set the runtime limit (default 12 hours): #$ -l h_rt=12:00:00 # Specify the project #$ -P cbs # Send email when the job is done (default: no email is sent) #$ -m e # Give the job a name (default: script name) #$ -N helloWorld # Join the output and error streams #$-j y ## end of qsub options module load R/3.2.3 Rscript helloWorld.R #R -q --vanilla < helloWorld.R