pch_clean_up | R Documentation |
Parallel computing helper function to clean up the parallel backend.
pch_clean_up(cl)
cl |
A cluster object of class |
The function returns nothing. Internally, it calls
parallel::stopCluster()
and foreach::registerDoSEQ()
.
parallel::stopCluster()
, foreach::registerDoSEQ()
if (require("doParallel") && require("foreach")) {
cl <- pch_register_parallel(pch_check_available_cores(2))
pch_clean_up(cl)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.