[R-pkg-devel] Fwd: package submission: parallel problem

Ronan GRIOT ron@n@gr|ot @end|ng |rom gm@||@com
Mon Jul 15 09:39:46 CEST 2019


Dear R developpers,
I submitted a package involving some parallel functions.

I received this error message:

Error in .check_ncores(length(names)) : 30 simultaneous processes spawned

I read that CRAN only pass the test if 2 cores are used.
However, in my function, I use this command line:

parallel::makeCluster(parallel::detectCores() - 2)

I try to fit the power of each computer by allowing all the cores except 2
(to keep other software running).

My question is: What I have to do? Limiting the number of cores at 2 to
pass the CRAN requirements? Or let "detectCores() - 2" to allow for more
cores for multi-cores computer but add a restriction to pass the tests?

Best regards.

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list