Parallelize a function
parallelize_fun(x, fun, cores = 1, export_fun = NULL, verbose = TRUE)
A vector or list to apply over.
The function to be applied to each element.
The number of cores to use for parallelization with foreach
, default is 1
.
The functions to export the function to workers.
Logical value, default is TRUE
, whether to print progress messages.
A list of computed results