Slurm_EvalQ {slurmR} | R Documentation |
Submit an expression to be evaluated to multiple jobs.
Description
Submit an expression to be evaluated to multiple jobs.
Usage
Slurm_EvalQ(
expr,
njobs = 2L,
job_name = opts_slurmR$get_job_name(),
tmp_path = opts_slurmR$get_tmp_path(),
plan = "collect",
sbatch_opt = list(),
rscript_opt = list(),
seeds = NULL,
compress = TRUE,
export = NULL,
export_env = NULL,
libPaths = .libPaths(),
hooks = NULL,
overwrite = TRUE,
preamble = NULL
)
Arguments
expr |
An expression to be passed to Slurm. |
njobs |
Integer. Number of jobs to use in the job-array. This specifies the number of R sessions to initialize. This does not specify the number of cores to be used. |
job_name |
Character. Name of the job to be passed to |
tmp_path |
Character. Path to the directory where all the data (including scripts) will be stored. Notice that this path must be accessible by all the nodes in the network (See opts_slurmR). |
plan |
A character scalar. (See the_plan). |
sbatch_opt |
List of options to be passed to |
rscript_opt |
List. Options to be passed to |
seeds |
Integer vector of length |
compress |
Logical scalar (default |
export |
A named list with objects to be included in the Spawned sessions. |
export_env |
An environment. Environment where the objects listed in
|
libPaths |
A character vector. See .libPaths. |
hooks |
A list of functions (passed to new_slurm_job). |
overwrite |
Logical scalar. When |
preamble |
Character vector. Each element is then added to the Slurm
batch file between the |
Value
A list of length njobs
.