Generates a remote configuration for launching daemons using an HPC cluster resource manager such as Slurm sbatch, SGE and Torque/PBS qsub or LSF bsub.
cluster_config(command = "sbatch", options = "", rscript = "Rscript")
A list in the required format to be supplied to the remote
argument
of daemons()
or launch_remote()
.
[default "sbatch"] for Slurm. Replace with "qsub" for SGE / Torque / PBS, or "bsub" for LSF. See examples below.
[default ""] options as would be supplied inside a script
file passed to command
, e.g. "#SBATCH --mem=10G", each separated by a new
line. See examples below.
Other shell commands e.g. to change working directory may also be
included.
For certain setups, "module load R" as a final line is required, or
for example "module load R/4.5.0" for a specific R version.
For the avoidance of doubt, the initial shebang line such as
"#!/bin/bash" is not required.
[default "Rscript"] assumes the R executable is on the
search path. Replace with the full path of the Rscript executable on the
remote machine if necessary. If launching on Windows, "Rscript"
should be
replaced with "Rscript.exe"
.
ssh_config()
for SSH launch configurations, or remote_config()
for generic configurations.