Clone git repository
cd ~
git clone https://github.com/ndevln/slurm_template_for_R_Language.git
cd slurm_template_for_R_Language
Optional: Modify files
- Modify R library location in example_r_script.R (line 3)
- Add your e-mail address to slurm_job.sh (line 11)
- Check if QOS medium is avaliable:
sacctmgr show qos format=name,priority
(slurm_job.sh: line 6) - Load the R module if needed (on CentOS/RHEL) (slurm_job.sh: line 13).
Start Slurm job
sbatch slurm_job.sh
Check job status (replace 'username' with your username on the server):
squeue -u username
My thanks go to our awesome HPC Team.