R CMD check Notes on ggplot, a subset, etc.

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?

+4
source share
1 answer

This is the reason this NOTE not a WARNING or ERROR - there is currently no automated way to detect the use of a non-standard estimate in a function.

+2
source

All Articles