R

#!/bin/bash

#$ -cwd
#$ -l h_rt=8:00:00,h_data=4g
#$ -o stdout.$JOB_ID
#$ -e stderr.$JOB_ID
....

# Use system-wise modules
source /u/local/Modules/default/init/modules.sh
module load R/4.0.2

# Run program
R CMD BATCH /path/to/your/R/script.R