Skip to content
Prev 43035 / 63421 Next

R CMD check returns NOTE about package data set as global variable

On Fri, 2012-04-06 at 13:23 -0700, Herv? Pag?s wrote:
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.

Thread (16 messages)