User Tools

Site Tools


guides:slurm:using-r

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
guides:slurm:using-r [23.09.2019 11:12]
Teemu Kuulasmaa
guides:slurm:using-r [18.11.2021 11:19] (current)
Administrator
Line 1: Line 1:
-# Using R with SLURM+# Using R with Slurm
  
 Example script (**hello.R**): Example script (**hello.R**):
Line 30: Line 30:
 #SBATCH --mail-type ALL # ALL will alert you of job beginning, completion, failure etc #SBATCH --mail-type ALL # ALL will alert you of job beginning, completion, failure etc
  
-module load r # load modules+module load r/4.0.0 # load modules
  
 Rscript hello.R # Execute the script Rscript hello.R # Execute the script
  
 ``` ```
-The last step is to submit the job to the compute queue with the **[sbatch](https://slurm.schedmd.com/sbatch.html)** command. Note that the batch file (and R script and data) must be located at local file system of login node, e.g. /home/users/ disk.+The last step is to submit the job to the compute queue with the **[sbatch](https://slurm.schedmd.com/sbatch.html)** command.
  
 ``` ```
 sbatch scriptR.sbatch sbatch scriptR.sbatch
 ``` ```
guides/slurm/using-r.1569226326.txt.gz · Last modified: 29.10.2019 15:10 (external edit)