Open jzadra opened 2 years ago
Currently doing a build check produces lots of no visible binding for global variable [x]. Many of these are bare, unquoted column names in tidyverse pipe chains (see https://www.r-bloggers.com/2019/08/no-visible-binding-for-global-variable/), for instance:
no visible binding for global variable [x]
mtcars %>% mutate(cyl = cyl *2)
This will produce a build check warning of no visible binding for global variable 'cyl'.
The solution to avoid this is:
mtcars %>% mutate(.data$cyl = .data$cyl *2)
I realize this is a bit more difficult ot determine where to put .data$, but it would be a nice feature.
.data$
Currently doing a build check produces lots of
no visible binding for global variable [x]
. Many of these are bare, unquoted column names in tidyverse pipe chains (see https://www.r-bloggers.com/2019/08/no-visible-binding-for-global-variable/), for instance:This will produce a build check warning of no visible binding for global variable 'cyl'.
The solution to avoid this is:
I realize this is a bit more difficult ot determine where to put
.data$
, but it would be a nice feature.