selectPar.pplyFun | R Documentation |
Selects an appropriate *pply function depending on the parallel choice
selectPar.pplyFun(
parallel.pars,
.pplyFUN = c("apply", "lapply", "sapply", "mapply")
)
parallel.pars |
The output from |
.pplyFUN |
*pply function to be used. Current options are |
The output function will be either parallel::parLapply
or lapply
for .pplyFUN = "lapply"
,
depending of whether parallelization is enabled or not. Same for apply
and parallel::parApply
and so on.
A function
From the makeCluster
help:
“It is good practice to shut down the workers by calling stopCluster
”. It is therefore recommended the
following line of code after using this function: on.exit(parallel::stopCluster(parallel.pars$cl))
J. Bedia
Other parallel.helpers:
parallelCheck()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.