Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Example 1:

Code Block
#!/bin/bash
#SBATCH --time=01:00:00c 1
#SBATCH -o %j.out      ## stdout
#SBATCH -e %j.err      ## stderr
#SBATCH --mem=5GB
cd /path/where/to/start/the/jobt 0-1         ## 1 hour runtime

module load r-4.3.0-gcc-11.2.0-6t5
R --no-save --quiet < regression.r

Example 2:

Code Block
#!/bin/bash
#SBATCH -c 1
#SBATCH -o %j.out      ## stdout
#SBATCH -e %j.err      ## stderr
Rscript#SBATCH --vanilla long-job-rscript.Rt 0-1         ## 1 hour runtime

module load r-4.3.0-gcc-11.2.0-6t5
Rscript regression.r 20000

Example: Submitting the job

Code Block
sbatch job.sh