开发者

R CMD check NOTEs on ggplot, subset, etc

开发者 https://www.devze.com 2023-01-24 22:48 出处:网络
When using ggplot or subset, a R CMD check command on my package generates the following notes: * checking R code for possible problems ... NOTE

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消