opts_slurmR {slurmR}R Documentation

Get and set default options for sbatch and slurmR internals

Description

Most of the functions in the slurmR package use tmp_path and job-name options to write and submit jobs to Slurm. These options have global defaults that are set and retrieved using opts_slurmR. These options also include SBATCH options and things to do before calling RScript, e.g., loading modules on an HPC cluster.

Usage

opts_slurmR

Format

An object of class opts_slurmR of length 17.

Details

Whatever the path specified on tmp_path, all nodes should have access to it. Moreover, it is recommended to use a path located in a high-performing drive. See for example disk staging.

The tmp_path directory is only created at the time that one of the functions needs to I/O files. Job creation calls like Slurm_EvalQ and Slurm_lapply do such.

The "preamble" options can be specified if, for example, the current cluster needs to load R, a compiler, or other programs via a module command.

Current supported options are:

Debugging mode

Verbose mode

Slurm options

Other options

For general set/retrieve options

Nuke

Examples


# Common setup
## Not run: 
opts_slurmR$set_tmp_path("/staging/pdt/vegayon")
opts_slurmR$set_job_name("simulations-1")
opts_slurm$set_opts(partition="thomas", account="lc_pdt")
opts_slurm$set_preamble("module load gcc")# if needed

## End(Not run)


[Package slurmR version 0.5-4 Index]