-
Notifications
You must be signed in to change notification settings - Fork 16
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
devtools functions for loading packages #16
Comments
It's an interesting question. load_all, certainly, is "roughly analogous" to library, though is that the one that dumps everything into the "namespace" of the package, rather than following the NAMESPACE file? Although, from a practical perspective, I'd argue that while those functions may be useful during the process of package development, but they shouldn't really be appearing in script code (as that should use actual, well-formed packages). Also if you're calling those functions with no arguments the default is ".", and we don't have any idea what that is at static-analysis time, so we can't be sure we are grabbing the right directory. We could assume it's the same as the directory you're doing the static analysis from, but that may not be a safe assumption generally. Let me think about it some more. |
@gmbecker Definitely reasonable concerns. Also, |
In addition to detecting
library()
,require()
, andrequireNamespace()
, what are your thoughts onload_all()
,load_code()
, andload_data()
fromdevtools
?The text was updated successfully, but these errors were encountered: