-
Notifications
You must be signed in to change notification settings - Fork 3
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
Global being masked by local function argument with the same name #53
Comments
The use of argument > globals::findGlobals({ f <- function(a=0) { a }; f(a) }, substitute = TRUE)
[1] "{" "<-" and > globals::findGlobals({ f <- function(a=0) { }; f(a) }, substitute = TRUE)
[1] "{" "<-" "a" Also, the call to > globals::findGlobals({ function(a) a; a }, substitute = TRUE)
[1] "{" and > globals::findGlobals({ function(a) NULL; a }, substitute = TRUE)
[1] "{" "a" |
|
HenrikBengtsson
added a commit
that referenced
this issue
Nov 22, 2020
…'x' as a global variable [#53]
Fixed in develop branch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From futureverse/doFuture#46:
findGlobals()
properly identifiesb
as a global in:but it fails to identify
a
as a global in:The text was updated successfully, but these errors were encountered: