Part 1: Slurm fundamentals (source code here)
Part 2: Simulating pi (again) (source code here)
All the contents of this repository can be downloaded from the following github repository
https://github.com/USCbiostats/slurmR-workshop
You can also download all the contents of this repository (including R and bash scripts) using git:
git clone https://github.com/USCbiostats/slurmr-workshop.git
All the examples here can be execued using GNU make. The command line entries used to run each one of the tasks follow (see the Makefile):
sbatch --partition=scavenge 01-sapply.slurm
sbatch --partition=scavenge 02-mclapply.slurm
sbatch --partition=scavenge 03-parsapply-slurmr.slurm
sbatch --partition=scavenge 04-slurm_sapply.slurm
Rscript -e 'slurmR::sourceSlurm("05-sapply.R", plan = "submit", partition = "scavange")'