#!/bin/bash
#BSUB -n 64 
#BSUB -W 20
#BSUB -oo out
#BSUB -eo err
module load R/4.0.2-gcc4.8.5
module load openmpi-gcc/openmpi1.8.4-gcc4.8.2
# Using vanilla causes R to ignore local/custom environment variables
# For example, the .Renviron file
# It should not be used without a reason
# (Here, the reason is so the example should work despite user level environment customizations) 
mpirun -n 1 R CMD BATCH --vanilla  ./hello.R
