run.R
: Script to run entire simulation studyconfig.R
andtorque.tmpl
: Config for the BIPS cluster -- don't change. See below.
You'll need some R packages:
install.packages(c("CVN", "CVNSim", "tidyverse", "hmeasure", "batchtools", "ggplot2"))
source("install-packages-github.R")
- To use R, you have to load the R module on the cluster:
- List available R versions:
module avail R
- Before loading an R module, you need
mpi
:module load mpi/openmpi/1.8.5
- List available R versions:
- Automatically load modules on login by adding the following to your
~/.bashrc
:
module load mpi/openmpi/1.8.5
module load R/4.0.2
module list
- Copy the config files
config.R
andtorque.tmpl
from above to your configuration directory:
# create directory if needed
mkdir -p ~/.config/batchtools/
cp config.R ~/.config/batchtools/
cp torque.tmpl ~/.config/batchtools/