Just run a command like:

module load lang/R

sbatch  --job-name=myjob --mem=4G --time=5-0:0 --output=myjob.slurm.log --wrap="Rscript /opt/scc/generic/examples/SLURM/myscript.R"


  • --job-name=<job name>: A name for the job. (Default is a random number)
  • --time=<days>-<hours>:<minutes>: time limit, after which the job will be killed. (Default is 25 hours)
  • --mem can use G for GB or M for MB. (default is 2G)
  • --output=<filename>: where to write STDOUT and STDERR (default is slurm-<job_id>.out)

SLURM has short versions for some of its options eg:

sbatch  -J myjob --mem=4G -t 5-0:0 -o myjob.slurm.log --wrap="Rscript /opt/scc/generic/examples/SLURM/myscript.R"