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

Override library() and require() calls. #1

Open
coatless opened this issue Oct 24, 2019 · 0 comments
Open

Override library() and require() calls. #1

coatless opened this issue Oct 24, 2019 · 0 comments

Comments

@coatless
Copy link
Collaborator

coatless commented Oct 24, 2019

The present use of on package event handling needs to be changed since the search state must only be changed after or before the package is loaded.

That is, stopping the package mid-load gives problematic errors:

library(*)
#> Error in as.environment(lib.pos) : invalid 'pos' argument

require(*)
#> Failed with error:  'invalid 'pos' argument'

https://github.com/coatless/watcher/blob/dd33b2435d2a498c9bb63bb54e5dd95b6e2da998/R/watchers.R#L35-L40

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