read_sbatch: Read a slurm batch file and capture the SBATCH options

View source: R/read_sbatch.R

read_sbatchR Documentation

Read a slurm batch file and capture the SBATCH options

Description

Read a slurm batch file and capture the SBATCH options

Usage

read_sbatch(x)

Arguments

x

Character scalar. Either the path to the batch file to process, or a character vector.

Value

A named vector of the options starting with ⁠#SBATCH⁠ in the file. If no option is found, then returns a character vector length 0.

Examples


# Reading in an example script
x <- system.file("example.slurm", package="slurmR")
read_sbatch(x)


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