[R] registerDoParallel and R CMD check --as-cran errors
Witold E Wolski
wewolski at gmail.com
Thu Sep 3 22:53:05 CEST 2015
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]]
More information about the R-help
mailing list