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 <wewol...@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]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to