From henrik.bengtsson at ucsf.edu  Fri Mar  6 02:24:09 2015
From: henrik.bengtsson at ucsf.edu (Henrik Bengtsson)
Date: Thu, 5 Mar 2015 17:24:09 -0800
Subject: [Rd] Submit a package which use doParallel
In-Reply-To: <CAFin55UctZk8mpTNe4Wa6B8kp5V01=RkQ5D8UU6GHkj8kDs5HQ@mail.gmail.com>
References: <CAFin55WOa+OXsG7JEqPp1-Le1Cir+0mHrrECEbQKFkGGoTTKTQ@mail.gmail.com>
	<1425597407.32760.3.camel@brian-rcg.priv.dvtrading.co>
	<54F8E522.8030104@gmail.com>
	<CAFin55UctZk8mpTNe4Wa6B8kp5V01=RkQ5D8UU6GHkj8kDs5HQ@mail.gmail.com>
Message-ID: <CAFDcVCS9Ro6SeZzo2Oq-rbq-OCs5tRSf7Q5KxSKamB2UbCVgpw@mail.gmail.com>

On Mar 5, 2015 5:01 PM, "Etienne Lord" <m.etienne.lord at gmail.com> wrote:
>
> Thanks for the quick reply.
>
> Adding all the dependencies of doParallel (foreach, parallel, iterators)
in
> the DESCRIPTION and in import statements in NAMESPACE resolved the
> build_win problems. Don't know why this is required for Windows build.

Most likely not a Windows specific issue,. Instead it could be because the
latter uses http://win-builder.r-project.org/ and that uses newer versions
of R than what you use locally. I'd guess you get the same NOTEs if you
test with R devel (now 3.2.0rc) locally and maybe even R 3.1.2 patched.

Henrik

>
> Thanks again.
>
> 2015-03-05 18:22 GMT-05:00 Duncan Murdoch <murdoch.duncan at gmail.com>:
>
> > On 05/03/2015 6:16 PM, Brian G. Peterson wrote:
> > > On Thu, 2015-03-05 at 18:03 -0500, Etienne Lord wrote:
> > >> Hi,
> > >>
> > >> I'm trying to submit my first package which depends on doParallel:
> > >>
> > >> Depends: R (>= 3.0), igraph, doParallel
> > >
> > > add foreach to your Depends.  That should resolve the error you're
> > > seeing.
> >
> > Please don't do that.  Use Imports.
> >
> > Duncan Murdoch
> >
> > >
> > >
> > >> Running hadley devtools: devtools::check() and devtools::release()
> > result
> > >> in no problem (no ERROR nor NOTE on Linux, Mac and Windows).
> > >>
> > >> However, when in use the devtools::build_win() command, it results in
> > the
> > >> following note:
> > >>
> > >> * checking R code for possible problems ... NOTE
> > >>
> > >> complete_network: no visible global function definition for '%dopar%'
> > >> complete_network: no visible global function definition for '%:%'
> > >> complete_network: no visible global function definition for 'foreach'
> > >
> > > <...>
> > >
> > >> 2) Installing the doParallel package "before" running any test on
> > windows
> > >> seems to remove this note. Is there any way to specify it in the
> > >> DESCRIPTION?
> > >
> >
> >
>
>
> --
> Etienne Lord
> ?tudiant au Doctorat en Informatique
> Universit? du Qu?bec ? Montr?al
> tel : 514 987-3000 ext. 4803
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

	[[alternative HTML version deleted]]



[Rd] Submit a package which use doParallel
Henrik Bengtsson