Learn R Programming

batchtools (version 0.9.0)

getStatus: Summarize the Computational Status

Description

This function gives an encompassing overview over the computational status on your system.

Usage

getStatus(ids = NULL, reg = getDefaultRegistry())

Arguments

ids
[data.frame or integer] A data.frame (or data.table) with a column named “job.id”. Alternatively, you may also pass a vector of integerish job ids. If not set, defaults to all jobs.
reg
[Registry] Registry. If not explicitly passed, uses the default registry (see setDefaultRegistry).

Value

[data.table] (with class “Status” for printing).

See Also

Other debug: getErrorMessages, grepLogs, killJobs, resetJobs, showLog, testJob

Examples

Run this code
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(ids = 1:4, reg = tmp)
waitForJobs(reg = tmp)

tab = getStatus(reg = tmp)
print(tab)
str(tab)

Run the code above in your browser using DataLab