#!/bin/sh # #$ -P myproject #$ -l h_rt=12:00:00 #$ -j y #$ -pe omp 8 #$ -m e # after we requested 8 slots with omp 8 option, # the variable NSLOTS is set to 8 and we can use it to pass the number # of cores to the R script module load R/4.0.2 Rscript mclapply.R $NSLOTS