powered by
You can then submit these jobs to the batch system.
batchMap(reg, fun, ..., more.args = list(), use.names = FALSE)
[Registry] Empty Registry that will store jobs for the mapping.
Registry
[function] Function to map over ....
function
...
[any] Arguments to vectorize over (list or vector).
[list] A list of other arguments passed to fun. Default is empty list.
list
fun
[logical(1)] Store parameter names to enable named results in loadResults and some other functions. Default is FALSE.
logical(1)
loadResults
FALSE
Vector of type integer with job ids.
integer
# NOT RUN { reg = makeRegistry(id = "BatchJobsExample", file.dir = tempfile(), seed = 123) f = function(x) x^2 batchMap(reg, f, 1:10) print(reg) # }
Run the code above in your browser using DataLab