#!/bin/bash -l # Specify SCC project #$ -P myproject # Specify time limit #$ -l h_rt=12:00:00 # Specify the number of CPU cores #$ -pe omp 8 # Combine output and error streams into a single otuput #$ -j y # Job name #$ -N foreach # Send an email at the end of the job #$ -m e # Load appropriate R version module load R/4.0.5 # Run R script Rscript foreach.R