Example 1:
#!/bin/bash #SBATCH -c 1 #SBATCH -o %j.out ## stdout #SBATCH -e %j.err ## stderr #SBATCH -t 0-1 ## 1 hour runtime module load r-4.3.0-gcc-11.2.0-6t5 R --no-save --quiet < regression.r
Example 2:
#!/bin/bash #SBATCH -c 1 #SBATCH -o %j.out ## stdout #SBATCH -e %j.err ## stderr #SBATCH -t 0-1 ## 1 hour runtime module load r-4.3.0-gcc-11.2.0-6t5 Rscript regression.r 20000
Example: Submitting the job
sbatch job.sh