From brian at braverock.com  Fri Mar  6 00:16:47 2015
From: brian at braverock.com (Brian G. Peterson)
Date: Thu, 05 Mar 2015 17:16:47 -0600
Subject: [Rd] Submit a package which use doParallel
In-Reply-To: <CAFin55WOa+OXsG7JEqPp1-Le1Cir+0mHrrECEbQKFkGGoTTKTQ@mail.gmail.com>
References: <CAFin55WOa+OXsG7JEqPp1-Le1Cir+0mHrrECEbQKFkGGoTTKTQ@mail.gmail.com>
Message-ID: <1425597407.32760.3.camel@brian-rcg.priv.dvtrading.co>

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.


> 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?

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



[Rd] Submit a package which use doParallel
Brian G. Peterson