getErrorMessages {batchtools} | R Documentation |
Retrieve Error Messages
Description
Extracts error messages from the internal data base and returns them in a table.
Usage
getErrorMessages(
ids = NULL,
missing.as.error = FALSE,
reg = getDefaultRegistry()
)
Arguments
ids |
[ |
missing.as.error |
[ |
reg |
[ |
Value
[data.table
] with columns “job.id”, “terminated” (logical),
“error” (logical) and “message” (string).
See Also
Other debug:
getStatus()
,
grepLogs()
,
killJobs()
,
resetJobs()
,
showLog()
,
testJob()
Examples
tmp = makeRegistry(file.dir = NA, make.default = FALSE)
fun = function(i) if (i == 3) stop(i) else i
ids = batchMap(fun, i = 1:5, reg = tmp)
submitJobs(1:4, reg = tmp)
waitForJobs(1:4, reg = tmp)
getErrorMessages(ids, reg = tmp)
getErrorMessages(ids, missing.as.error = TRUE, reg = tmp)
[Package batchtools version 0.9.17 Index]