Witold E Wolski
2015-Sep-02 12:39 UTC
[R] registerDoParallel and R CMD check --as-cran errors
I am testing a package with R CMD check and R CMD check --as-cran some code which is run in the examples section uses the foreach and doParallel package. When run with --as-cran I have an error. registerDoParallel function causes an error. Error in .check_ncores(length(names)) : 6 simultaneous processes spawned Calls: annotatePeptides ... registerDoParallel -> makeCluster -> makePSOCKcluster -> .check_ncores What should can I do to prevent this error and pas the --as-cran check? best regards Witold -- Witold Eryk Wolski [[alternative HTML version deleted]]
Witold E Wolski
2015-Sep-03 20:53 UTC
[R] registerDoParallel and R CMD check --as-cran errors
To answer my own question. Dono if it's the right way to do... In the example code I am using a single CPU and it works. regards PS. Should I have asked this question on the devel list? On 2 September 2015 at 14:39, Witold E Wolski <wewolski at gmail.com> wrote:> I am testing a package with > > R CMD check > and > R CMD check --as-cran > > some code which is run in the examples section uses the foreach and > doParallel package. > > > When run with --as-cran I have an error. > registerDoParallel function causes an error. > > Error in .check_ncores(length(names)) : 6 simultaneous processes spawned > Calls: annotatePeptides ... registerDoParallel -> makeCluster -> > makePSOCKcluster -> .check_ncores > > > What should can I do to prevent this error and pas the --as-cran check? > > best regards > Witold > > > -- > Witold Eryk Wolski > >-- Witold Eryk Wolski [[alternative HTML version deleted]]