-
Notifications
You must be signed in to change notification settings - Fork 129
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
expose_imports and load_all: namespace found within global environments #1173
Comments
I was able to resolve the issue by running
|
Glad you figured it out! Let me know if the error comes back. I tried, but could not reproduce it (with my own versions of packages). Possibly related: https://github.com/klmr/modules/issues/80? To make it easier to troubleshoot next time, might I suggest shipping an |
I just added new package-tracking functionality in |
Prework
drake
's code of conduct.drake-r-package
tag. (If you anticipate extended follow-up and discussion, you are already in the right place!)Description
Thank you for such a great package!
I'm experimenting with combining a package workflow and
drake
. I've creating a template in a repo. I want to expose changes in my custom functions so I'm usingexpose_imports
, as per the drake manual. But this leads to a "namespace found within global environments" error. I'm executing my plan as below (The actual plan is much larger but I've truncated it to the first error):The plan and everything else works without
expose_imports
, but this doesn't track changes in the custom functions. Withexpose_imports
thevis_drake_graph
of the above plan shows my functions.I've been at this for a while. I've tried, without success:
load_all
.make
withprework = devtools::load_all()
vocabulary
function with one that imports a pre-definedvocabulary.rds
(in which case, the error moves onto the next part of the complete plan)vis_drake_graph
doesn't show the custom functions)Errors
Reproducible example
I've created a branch in which I've trimmed everything out except what's necessary to run the first plan above: minimal branch
Desired result
vis_drake_graph
, andSession info
The text was updated successfully, but these errors were encountered: