Follow these steps to run R on the Grid.
Log in to the Grid.
Submit an interactive job: srun -q primary --mem 5G -t 10:00:00 --pty bash.
srun -q primary --mem 5G -t 10:00:00 --pty bash
Type module load r/3.2.3.
module load r/3.2.3
Type R.
R
You are now running R.