mllg / batchtools

Tools for computation on batch systems
https://mllg.github.io/batchtools/
GNU Lesser General Public License v3.0
171 stars 51 forks source link

Control verbosity of output in `waitForJobs()` and `submitJobs()` #176

Closed nturaga closed 6 years ago

nturaga commented 6 years ago

If there was a way to control verbosity of the messages being printed in the waitForJobs() function, and similarly submitJobs(),

verbose=TRUE/FALSE

args(waitForJobs)
function (ids = NULL, sleep = NULL, timeout = 604800, expire.after = 3L,
    stop.on.error = FALSE, stop.on.expire = FALSE, reg = getDefaultRegistry(), verbose=TRUE)

args(submitJobs)
function (ids = NULL, resources = list(), sleep = NULL, reg = getDefaultRegistry(), verbose=TRUE)
mllg commented 6 years ago

You can already control the output via an option:

options(batchtools.verbose = FALSE)
submitJobs()
nturaga commented 6 years ago

Thanks @mllg