[Rd] R CMD check returns NOTE about package data set as global variable
pdalgd at gmail.com
Fri Apr 6 23:49:47 CEST 2012
On Apr 6, 2012, at 23:04 , Brian G. Peterson wrote:
> 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.
Actually, this one is perfectly valid. It is saying that you are messing with global variables, which you might not want to do in package code. It is admittedly rather unlikely that the user has a variable called "RutgersMapB36" lying around for you to clobber, but suppose that it was "x" or "mydata"...
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-devel