-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: R CMD check and no visible binding for global variable #1714
Comments
I don't like the idea of providing a helper because there are plenty of cases where this check does catch an issue (a typo in a variable name for instance, or forgetting to include a variable as a function argument), so I think this is something a human needs to look at and verify they are really false positives. It is possible there could be a usethis helper which would help construct the |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Hi,
I know that the issue of
R CMD check
and the copious amounts ofno visible binding for global variable [variable name]
NOTES it produces has been raised in other forums (e.g., on StackOverflow: https://stackoverflow.com/questions/9439256/how-can-i-handle-r-cmd-check-no-visible-binding-for-global-variable-notes-when, or in the context of other packages: tidyverse/magrittr#29), but the solutions provided therein are either not satisfactory or are actually problematic to the package since the solutions themselves introduce some additional notes/warnings, especially if this is your first time developing package and you are encountering this problem for the first time.So I was wondering if the future release of
devtools
can have some routines that automatically take the necessary steps to remove this particular breed of NOTES (e.g., automatically adding necessary variables viaglobalVariables(c(...))
or setting them toNULL
, etc.) since it seems like a very common problem that people encounter and is frustrating to get rid off.The text was updated successfully, but these errors were encountered: