if (FALSE) {
x <- Slurm_EvalQ(Sys.sleep(100), njobs = 2)
status(x) # A possible result: An integer with attributes
# Status: All jobs are pending resource allocation or are on it's way to start. (Code 1)
# This is a job array. The status of each job, by array id, is the following:
# done : -
# failed : -
# pending : 1, 2.
# running : -
}
Run the code above in your browser using DataLab