From m.etienne.lord at gmail.com  Fri Mar  6 00:03:09 2015
From: m.etienne.lord at gmail.com (Etienne Lord)
Date: Thu, 5 Mar 2015 18:03:09 -0500
Subject: [Rd] Submit a package which use doParallel
Message-ID: <CAFin55WOa+OXsG7JEqPp1-Le1Cir+0mHrrECEbQKFkGGoTTKTQ@mail.gmail.com>

Hi,

I'm trying to submit my first package which depends on doParallel:

Depends: R (>= 3.0), igraph, doParallel

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'
sample_network: no visible global function definition for '%dopar%'
sample_network: no visible global function definition for 'foreach'

Googling for " no visible global function definition for '%dopar%' " result
in a few CRAN packages with
similar note e.g.
http://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-clang/penDvine-00check.html

1) Is there a special way to include the doParallel package so that this
error do not occur?

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?

Best regards,

Have a nice day.

-- 
Etienne Lord, Ph.D.
Post-Doc Bioinformatics.
Universit? du Qu?bec ? Montr?al
Universit? de Montr?al

	[[alternative HTML version deleted]]



[Rd] Submit a package which use doParallel
Etienne Lord