testJob {BatchJobs} | R Documentation |
Tests a job by running it with Rscript in a new process.
Description
Useful for debugging. Note that neither the registry, database or file directory are changed.
Usage
testJob(reg, id, resources = list(), external = TRUE)
Arguments
reg |
[ |
id |
[ |
resources |
[ |
external |
[ |
Value
[any]. Result of job. If the job did not complete because of an error, NULL is returned.
See Also
Other debug:
debugMulticore()
,
debugSSH()
,
getErrorMessages()
,
getJobInfo()
,
getLogFiles()
,
grepLogs()
,
killJobs()
,
resetJobs()
,
setJobFunction()
,
showLog()
Examples
reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123)
f = function(x) if (x==1) stop("oops") else x
batchMap(reg, f, 1:2)
testJob(reg, 2)