Difference between revisions of "R Job Script"
Jump to navigation
Jump to search
Moskalenko (talk | contribs) |
Moskalenko (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | [[Category:Software]] | ||
[[R|back to the main R page]] | [[R|back to the main R page]] | ||
Revision as of 13:59, 30 June 2017
#!/bin/bash
#SBATCH --job-name=prime_threaded #Job name
#SBATCH --mail-type=ALL # Mail events (NONE, BEGIN, END, FAIL, ALL)
#SBATCH --mail-user=ENTER_YOUR_EMAIL_HERE # Where to send mail
#SBATCH --cpus-per-task=4 # Number of cores for multi-threaded ojbs
#SBATCH --mem-per-cpu=1gb # Per processor memory
#SBATCH -t 00:05:00 # Walltime
#SBATCH -o prime_threaded.%j.out # Name output file
#Record the time and compute node the job ran on
date; hostname; pwd
#Use modules to load the environment for R
module load R
#Run R script
Rscript myRscript.R