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

Use loadedNamespaces() instead of overriding loadNamespace? #1

Open
courtiol opened this issue Feb 20, 2020 · 2 comments
Open

Use loadedNamespaces() instead of overriding loadNamespace? #1

courtiol opened this issue Feb 20, 2020 · 2 comments

Comments

@courtiol
Copy link
Owner

courtiol commented Feb 20, 2020

Using loadedNamespaces() would prevent overriding a base function, but it would require to have a background looping process... There is a trade-off to solve here...

@courtiol courtiol changed the title Use loadedNamespaces() instead of overiding loadNamespace? Use loadedNamespaces() instead of overriding loadNamespace? Feb 20, 2020
@courtiol
Copy link
Owner Author

Perhaps it would be good to understand how https://github.com/r-lib/conflicted works since it reacts to function calls without overwriting them... If you know how this works, please comment here.

@courtiol
Copy link
Owner Author

courtiol commented May 4, 2021

Another package that repurpose an original R function (install.packages()) is CoprManager.
No I don't think CoprManager repurpose anything, I think they just tweak the repository where install.packages() reads via fiddling with the R options. I don't understand their code at all, but it seems out of scope for the current issue.

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