tmp = makeRegistry(file.dir = NA, make.default = FALSE)
batchMap(function(x, y) x + y, x = 1:2, more.args = list(y = 99), reg = tmp)
submitJobs(resources = list(foo = "bar"), reg = tmp)
job = makeJob(1, reg = tmp)
print(job)
# Get the parameters:
job$pars
# Get the job resources:
job$resources
# Execute the job locally:
execJob(job)
Run the code above in your browser using DataLab