This repository contains example reference files used to run an R-based script in parallel on a Linux HPC using TORQUE.
The code within was used to run jobs via William & Mary's HPC group.
See .r script for an example of parallelization code which uses foreach()
. Also note that this script was part of a larger project calling additional R and executable files and will not run; see repository for this project here.
See .pbs script (can be opened in any text reader) to see how the job was submitted. The .pbs script contains information that titles the job, identifies the cluster on which the job is to be run and the number of cores to be used, the maximum walltime for which to run the job, loads the pre-built module that contains R, and runs the R script.