Functions and classes to communicate, submit jobs, and parallelize tasks using a SLURM cluster
Job
Class for individual SLURM job submission and management
JobArray
Class for efficient multi-job SLURM submission and management
superApply()
Efficient parallel lapply using a SLURM cluster
Functions to do simple operations in a SLURM cluster
cancelJob()
Cancels a SLURM job
getJobState()
Gets the job state(s) of one or more SLURM jobs
getJobNumber()
Gets the number of existing SLURM jobs for a given user
getMaxJobArrayLength()
Gets maximum length for a Job array in the current SLURM cluster
Internally used functions and classes
JobInfo
Parent class of Job and JobArray
grepTempFile()
From an existing file, creates a new one containing a given string
isWriteable()
Returns TRUE if the path is writeable
parseArg()
Converts string into vector using a separator
printTime()
Prints message with current time and date
shellCmdExists()
Check if shell command exists
systemSubmit()
systemSubmit
trim()
Trims white space
createJobScriptsData()
Helper of superApply
createStringFunction()
getJobArray()
getPartitionIndeces()
getUserFunctions()
getUserPackages()
mergeListDir()