#!/bin/sh #SBATCH --nodes=4 #SBATCH --time=1 #SBATCH --exclusive module load R/3.1+intel-15.0 # the openmpi module is not loaded by default with R module load openmpi/1.8+intel-15.0 # Always use -n 1 for the Rmpi package. It spawns additional processes dynamically mpirun -n 1 Rscript Rmpi.R