showLog | R Documentation |
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.
Other debug:
getErrorMessages()
,
getStatus()
,
grepLogs()
,
killJobs()
,
resetJobs()
,
testJob()
tmp = makeRegistry(file.dir = NA, make.default = FALSE)
# 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)
submitJobs(reg = tmp)
waitForJobs(reg = tmp)
getStatus(reg = tmp)
writeLines(getLog(ids[1], reg = tmp))
## Not run:
showLog(ids[1], reg = tmp)
## End(Not run)
grepLogs(pattern = "warning", ignore.case = TRUE, reg = tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.