[R-pkg-devel] doMC dependency

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon May 15 21:02:45 CEST 2017


The question is why you want to make doMC an hard install time  dependency.

Better make it optional (via Suggests) and provide different 
parallelization mechanisms on platforms where doMC is unavailable.

Best,
Uwe Ligges




On 15.05.2017 21:00, David Hugh-Jones wrote:
> 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}}
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>



More information about the R-package-devel mailing list