The main documentation is available on the cluster via module help math/R. Most software modules for applications provide working example batch scripts.
module help math/R