rsbatch: sbatch setup and submit Creates slurm sbatch submission...

View source: R/config_miscwrappers.R

rsbatchR Documentation

sbatch setup and submit Creates slurm sbatch submission string, and optionally submits the job using system

Description

sbatch setup and submit

Creates slurm sbatch submission string, and optionally submits the job using system

Usage

rsbatch(
  sh.path,
  partition = NA,
  nodes = 1,
  ntasksPerNode = 1,
  memGb = 50,
  time = c(0, 6, 0, 0),
  submit = FALSE,
  intern = FALSE
)

Arguments

sh.path

Character string with path to bash script

partition

Character string with name of partition to submit the job to. Passed to sbatch argument '–partition'. Default NA.

nodes

Number of nodes to split the job across. Default 1.

ntasksPerNode

Number of tasks (cores) to use per node. Default 1.

memGb

Total amount of memory to allocate for the job. Default 50Gb.

time

Numerical vector with length 4, with the number of days, hours, minutes, and seconds, respectively, to allocate for the job.

submit

Logical with whether or not to submit the jobs to the cluster.

Value

Either vector of character strings that can be piped to system, or NULL


JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.