pch_clean_up {kdry} | 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)
}