We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just a note for now: The following reserved keywords are flagged as globals by findGlobals() although they're "cannot" be globals:
findGlobals()
if
for
repeat
break
while
next
Ok, technically, the can.
Note that some of the reserved keywords in R are not picked up, e.g.
function
else
in
Keyword: function
> globals::findGlobals(function() NULL, substitute = TRUE) [1] character(0)
Keywords: if and else
> globals::findGlobals(if (TRUE) 1 else 0, substitute = TRUE) [1] "if"
Keywords: for and in
> globals::findGlobals(for (x in NULL) NULL, substitute = TRUE) [1] "for"
Keywords: repeat and break
> globals::findGlobals(repeat break, substitute = TRUE) [1] "repeat" "break"
Keywords: while and next
> globals::findGlobals(while(FALSE) next, substitute = TRUE) [1] "while" "next"
PS. codetools::findGlobals() does the same.
codetools::findGlobals()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Just a note for now: The following reserved keywords are flagged as globals by
findGlobals()
although they're "cannot" be globals:if
for
repeat
break
while
next
Ok, technically, the can.
Note that some of the reserved keywords in R are not picked up, e.g.
function
else
in
Reproducible examples
Keyword:
function
Keywords:
if
andelse
Keywords:
for
andin
Keywords:
repeat
andbreak
Keywords:
while
andnext
PS.
codetools::findGlobals()
does the same.The text was updated successfully, but these errors were encountered: