When using ggplot or a subset, the 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) }
This section of the R CMD check is useful if you forget about using global variables in a package. Therefore, I would like it to be clean.
Is it possible to inform R about the special nature of ggplot / subset?
source share