From brian at braverock.com  Fri Apr  6 23:04:04 2012
From: brian at braverock.com (Brian G. Peterson)
Date: Fri, 06 Apr 2012 16:04:04 -0500
Subject: [Rd] R CMD check returns NOTE about package data set as global
 variable
In-Reply-To: <4F7F50A5.7090304@fhcrc.org>
References: <1114888490.18258021.1333740833420.JavaMail.root@jaguar9.sfu.ca>
	<4F7F50A5.7090304@fhcrc.org>
Message-ID: <1333746244.24441.44.camel@brian-desktop>

On Fri, 2012-04-06 at 13:23 -0700, Herv? Pag?s wrote:
> test<-function() {
>     RutgersMapB36 <- NULL
>     data(RutgersMapB36)
>     return(RutgersMapB36[,1])
> } 

That won't work, but this should:

RutgersMapB36 <- NULL
test<-function() {
    data(RutgersMapB36)
    return(RutgersMapB36[,1])
}

Honestly, this is just another example of a non-helpful 'global
variable' NOTE.  I've removed many of these from our packages, often by
resorting to useless workarounds like this one, but I have never once
gotten a valid NOTE out of this message.  We provided other examples
earlier in a different thread.

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



[Rd] R CMD check returns NOTE about package data set as global variable
Brian G. Peterson