-
Notifications
You must be signed in to change notification settings - Fork 186
no visible binding for global variable ‘Cloaked’ #336
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
Comments
There isn't really anything to do, this is the expected behavior. You can either turn off the object linter or use |
Thanks @jimhester ! (I didn't know if it was a real problem, and that just doing '#nolint start' / '#nolint end' would just mask the problem...) Is this a similar issue then? (It complains about "no visible global function definition for 'cloaked'..)
Is that also expected behavior? Thanks! |
Yes, that is expected. |
Can you say more about why this example is expected when #27 isn't? I don't follow whether this is a parsing limitation or if I missed a memo that using locally-defined functions is bad practice. |
It is expected in that it is a known issue, ideally this would be fixed, but it requires changing how the files are processed and the object linter is structured. |
Hi. I'm sure that this is a misunderstanding of mine, since I'm not really an R programmer...
I have my code here: https://gist.github.com/bnsh/3839c4eb2c6b31e32c39ec312014b2b8
It works... But, lintr complains: "cloak.R:19:8: warning: no visible binding for global variable ‘Cloaked’"
Why? What do I have to do to satisfy lintr?
Thanks!
The text was updated successfully, but these errors were encountered: