parse_flags: Utility function

View source: R/utils.R

parse_flagsR Documentation

Utility function

Description

Utility function

Usage

parse_flags(...)

## Default S3 method:
parse_flags(...)

## S3 method for class 'list'
parse_flags(x, ...)

Arguments

...

Options to be parsed as bash flags.

x

A named list.

Value

A character vector with the processed flags.

See Also

Other utilities: Slurm_clean(), Slurm_env(), Slurm_log(), WhoAmI(), snames(), status()

Examples

cat(parse_flags(a=1, b=TRUE, hola=2, y="I have spaces", ms=2, `cpus-per-task`=4))
# -a 1 -b --hola=2 -y "I have spaces" --ms=2 --cpus-per-task=4

slurmR documentation built on Aug. 30, 2023, 5:06 p.m.