Executes a single job (as created by makeJob) and returns its result. Also works for Experiments.

execJob(job)

Arguments

job

[Job | Experiment]
Job/Experiment to execute.

Value

Result of the job.

Examples

batchtools:::example_push_temp(1) tmp = makeRegistry(file.dir = NA, make.default = FALSE)
#> No readable configuration file found
#> Created registry in '/tmp/batchtools-example/reg' using cluster functions 'Interactive'
batchMap(identity, 1:2, reg = tmp)
#> Adding 2 jobs ...
job = makeJob(1, reg = tmp) execJob(job)
#> ### [bt]: Setting seed to 12825 ...
#> [1] 1