powered by
Read a slurm batch file and capture the SBATCH options
read_sbatch(x)
A named vector of the options starting with #SBATCH in the file. If no option is found, then returns a character vector length 0.
#SBATCH
Character scalar. Either the path to the batch file to process, or a character vector.
# Reading in an example script x <- system.file("example.slurm", package="slurmR") read_sbatch(x)
Run the code above in your browser using DataLab