From hadley at rice.edu  Fri Apr  6 21:38:11 2012
From: hadley at rice.edu (Hadley Wickham)
Date: Fri, 6 Apr 2012 14:38:11 -0500
Subject: [Rd] R CMD check returns NOTE about package data set as global
	variable
In-Reply-To: <1701096951.18211343.1333737988103.JavaMail.root@jaguar9.sfu.ca>
References: <156280092.18208556.1333737562321.JavaMail.root@jaguar9.sfu.ca>
	<1701096951.18211343.1333737988103.JavaMail.root@jaguar9.sfu.ca>
Message-ID: <CABdHhvFHG5JR+oE1h_RAZG89MoR6F5hzPX1Wke=m2HYLvdTVcg@mail.gmail.com>

Is the dataset something that package users will need, or just your
package's functions?
Hadley

On Fri, Apr 6, 2012 at 1:46 PM, Brad McNeney <mcneney at sfu.ca> wrote:
> I'm developing a package that comes with a data set called RutgersMapB36. One of the package's functions requires this data frame. A toy example is:
>
> test<-function() {
> ?data(RutgersMapB36)
> ?return(RutgersMapB36[,1])
> }
>
>
> R CMD check returns a NOTE:
>
> test: no visible binding for global variable 'RutgersMapB36'
>
> Is there any way to avoid this NOTE?
>
> Thanks,
>
> Brad
> ---
> Brad McNeney
> Statistics and Actuarial Science
> Simon Fraser University
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] R CMD check returns NOTE about package data set as global variable
Hadley Wickham