batch_submit | R Documentation |
Given an existing batch script, this script calls sbatch
with parameters and gets job submitted.
Ideal to simplify big loops.
batch_submit(name)
name |
Either the full batch job file path, or its base name (excluding the extension |
batch_writer()
to write slurm batch scripts.
batch_cleanup()
to remove slurm batch scripts.
# set desired parameters
commands <- 'time echo "Hello world!"'
name <- 'hola'
mem <- '1G'
# writes file `hola.q`
batch_writer(
commands,
name,
mem
)
# this submits `hola.q`:
batch_submit( 'hola' )
# cleanup
batch_cleanup( name )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.