*I am building a package a package and one of its functions need parallel procesing.* *Then I created the function because my final use are not technical:*
create.cluster <-function() { # Calculate the number of cores no_cores <-parallel::detectCores() - 1 # Initiate cluster cl <- parallel::makeCluster(no_cores) return(cl) } # create.cluster <-function() *Then the final use need to execute:* cl <- create.cluster() Commands parallel::stopCluster(cl); *When preparing my package with "R CMD check --as-cran mypackage" the following error occurs:* *Error in .check_ncores(length(names)) : 3 simultaneous processes spawned* *I know the limit of cores is 2 for package check and my laptop has 4, I believe this is the error cause.* *How I would fix this error?* -- *In Jesu et Maria* *Thank you* *Prof. Elias Carvalho* *"Felix, qui potuit rerum cognoscere causas" (Virgil 29 BC)"Blessed is he who has been able to understand the cause of things"* [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel