[R-pkg-devel] doMC dependency

David Hugh-Jones davidhughjones at gmail.com
Mon May 15 21:00:06 CEST 2017


>From what you say it sounds as if your package fails on Windows because,
well, it doesn't work on Windows, given that doMC isn't available. Trying
to hide that would seem weird. Does CRAN insist that all packages should
work on all platforms?

On Mon, 15 May 2017 at 19:40, Christopher Lalansingh <
Christopher.Lalansingh at oicr.on.ca> wrote:

> Hi everyone,
>
>
> I'm preparing to release a package which uses doMC for parallelization in
> certain functions. I've used require(doMC) to specify this for these
> functions, and importFrom("doMC", "registerDoMC") in my NAMESPACE.
>
>
> I ran all the R CMD --as-cran checks under 3.4.0 and R-devel on Debian 8
> sucessfully, but when I submitted to CRAN the package failed when built on
> Windows. This is because doMC is not available for Windows. It was
> recommended by Uwe Ligges that I move doMC to "Suggests", but since doMC is
> required for functions in my package this does not seem to work:
>
>
> * checking package dependencies ... ERROR
> Namespace dependency not required: 'doMC'
>
>
> Is there a way to keep doMC in 'Suggests' by changing how I attach/load
> doMC in my package?
>
>
> Thanks for your help,
>
>
> Christopher Lalansingh
> Software Engineer
>
>
> Ontario Institute for Cancer Research
> MaRS Centre, South Tower
> 101 College Street, Suite 800
> Toronto, Ontario, Canada M5G 0A3
>
>
>
> Toll-free: 1-866-678-6427
>
> Twitter: @OICR_news<
> https://webmail.oicr.on.ca/owa/redir.aspx?C=MA7-a3CvAEG5RdsDMIcBK_o6Usmud9AIx_-tz-3Es_08qcyqPQSaa-TKX-K3aGfgEn8rFENGNrs.&URL=http%3a%2f%2fwww.twitter.com%2fOICR_news
> >
> www.oicr.on.ca<
> https://webmail.oicr.on.ca/owa/redir.aspx?C=MA7-a3CvAEG5RdsDMIcBK_o6Usmud9AIx_-tz-3Es_08qcyqPQSaa-TKX-K3aGfgEn8rFENGNrs.&URL=http%3a%2f%2fwww.oicr.on.ca
> >
>
>
>
> This message and any attachments may contain confident...{{dropped:12}}



More information about the R-package-devel mailing list