Executes a single job (as created by makeJob
) and returns
its result. Also works for Experiments.
Arguments
- job
[
Job
|Experiment
]
Job/Experiment to execute.
Examples
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