When using ggplot or subset, a R CMD check command on my package generates the following notes:
* checking R code for possible problems ... NOTE
foo: no visible binding for global variable ‘bar’
for a mock function such as
foo <- function(dataframe) { subset(dataframe,bar>10) }
That R CMD check section is useful when forgetting about the usage of global variables in a package. Therfore I'd like to have it clean.
Is there a possibility to let R know of the special nature of ggplot/subset?
with(foo, subset(...))or similar, so it has nothing to do withggplot2per se. I had meant to report it on r-devel but then I must have gotten distracted). Seems like a bug intoolsto me. - Dirk Eddelbuettel