Load a module:
$ module load r-studio/4.1.2
Using R
Once loaded, you can start the R console:
$ R
Or execute an R script:
$ Rscript <file name>