Skip to content
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

ability to suppress warning on failure to source source when calling makeRegistry #281

Open
myoung3 opened this issue Oct 7, 2021 · 0 comments

Comments

@myoung3
Copy link

myoung3 commented Oct 7, 2021

the makeRegistry function contains this line

with_dir(reg$work.dir, loadRegistryDependencies(reg))

which itself will source the source argument of makeRegistries (if specified). This is often a good idea, since it allows testing of the source script in the current environment, but there may be reasons why sourcing that file in the current R session is definitely expected to fail (e.g. if it depends on specific environment variables set in the template file). It would be nice to have a way to suppress this warning message:

 handler("Failed to source file '%s': %s", fn,
                  as.character(ok))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant