View source: R/utilities-parallel.R
executeInParallel | R Documentation |
Parallelize the execution of a function over a list of arguments values
executeInParallel(
fun,
firstArguments,
exports = NULL,
...,
outputNames = NULL,
nrOfCores = ospsuite::getOSPSuiteSetting("numberOfCores")
)
fun |
A function that will be called with different arguments values |
firstArguments |
A list of the values of the first argument of the
function. The function will be called |
exports |
Names of the objects in the calling environment that the
function relies on that are not passed as arguments. May be |
... |
Further arguments of the function. |
outputNames |
Optional: a list of names used for the output list. Result
of each execution of |
nrOfCores |
Optional: the maximal number of parallel threads. By default
the value defined in |
A list containing the outputs of the function fun
iterated over the
values in firstArguments
.
parLapply()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.