R CMD check NOTEs on ggplot, subset, etc
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 sp开发者_运维知识库ecial nature of ggplot/subset?
That's the reason that this is a NOTE
not a WARNING
or ERROR
- there's currently no automated way to detect the use of non-standard evaluation in a function.
精彩评论