batch_cleanup: Delete an existing slurm batch script

View source: R/batch_cleanup.R

batch_cleanupR Documentation

Delete an existing slurm batch script

Description

This convenient function deletes a batch script without having to provide the extension. Good practice after large submissions.

Usage

batch_cleanup(name)

Arguments

name

Either the full batch job file path, or its base name (excluding the extension .q). Must exist.

See Also

batch_writer() to write slurm batch scripts. batch_submit() to submit slurm batch scripts.

Examples


# set desired parameters
commands <- 'time echo "Hello world!"'
name <- 'hola'

# writes file `hola.q`
batch_writer(
    commands,
    name
)

# cleanup
batch_cleanup( name )


OchoaLab/ochoalabtools documentation built on July 28, 2024, 12:37 p.m.