# NOT RUN {
reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123)
f = function(x) x^2
batchMap(reg, f, 1:10)
submitJobs(reg)
waitForJobs(reg)
# should show 10 submitted jobs, which are all done.
showStatus(reg)
# }
Run the code above in your browser using DataLab