Re: [R] registerDoParallel and R CMD check --as-cran errors

2015-09-03 Thread Witold E Wolski
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 wrote: > I am testing a package with > > R CMD check > and >

[R] registerDoParallel and R CMD check --as-cran errors

2015-09-02 Thread Witold E Wolski
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