showLog
opens the log in the pager. For customization, see file.show
.
getLog
returns the log as character vector.
showLog(id, reg = getDefaultRegistry()) getLog(id, reg = getDefaultRegistry())
id | [ |
---|---|
reg | [ |
Nothing.
#>#># Create some dummy jobs fun = function(i) { if (i == 3) stop(i) if (i %% 2 == 1) warning("That's odd.") } ids = batchMap(fun, i = 1:5, reg = tmp)#>#>#> Warning: That's odd.#> Error in (function (i) : 3#> Warning: That's odd.#> [1] FALSE#> Status for 5 jobs at 2020-10-21 09:39:31: #> Submitted : 5 (100.0%) #> -- Queued : 0 ( 0.0%) #> -- Started : 5 (100.0%) #> ---- Running : 0 ( 0.0%) #> ---- Done : 4 ( 80.0%) #> ---- Error : 1 ( 20.0%) #> ---- Expired : 0 ( 0.0%)#> ### [bt]: This is batchtools v0.9.14 #> ### [bt]: Starting calculation of 1 jobs #> ### [bt]: Setting working directory to '/home/michel/Projekte/batchtools/docs/reference' #> ### [bt]: Memory measurement disabled #> ### [bt]: Starting job [batchtools job.id=1] #> ### [bt]: Setting seed to 5192 ... #> #> ### [bt]: Job terminated successfully [batchtools job.id=1] #> ### [bt]: Calculation finished!if (FALSE) { showLog(ids[1], reg = tmp) } grepLogs(pattern = "warning", ignore.case = TRUE, reg = tmp)#> Empty data.table (0 rows and 2 cols): job.id,matches