From pdalgd at gmail.com  Fri Apr  6 23:49:47 2012
From: pdalgd at gmail.com (peter dalgaard)
Date: Fri, 6 Apr 2012 23:49:47 +0200
Subject: [Rd] R CMD check returns NOTE about package data set as global
	variable
In-Reply-To: <1333746244.24441.44.camel@brian-desktop>
References: <1114888490.18258021.1333740833420.JavaMail.root@jaguar9.sfu.ca>
	<4F7F50A5.7090304@fhcrc.org>
	<1333746244.24441.44.camel@brian-desktop>
Message-ID: <8B7B10F8-00C8-4477-B73D-CC4F631C7001@gmail.com>


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
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] R CMD check returns NOTE about package data set as global variable
peter dalgaard