[R] Checking a function for undeclared variables
Jeff Newmiller
jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Wed Apr 6 02:48:04 CEST 2022
?codetools::findGlobals
On April 5, 2022 5:36:54 PM PDT, Peter Langfelder <peter.langfelder using gmail.com> wrote:
>Hi all,
>
>I'd like to check a function for undeclared global variables using
>something similar to what R CMD check does when "checking R code for
>possible problems". My search came up empty but I hope there is way to
>do it without building a package just for this purpose, isn't there?
>
>Thanks!
>
>Peter
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.
--
Sent from my phone. Please excuse my brevity.
More information about the R-help
mailing list