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

with_s3_method #224

Open
moodymudskipper opened this issue Apr 4, 2023 · 2 comments
Open

with_s3_method #224

moodymudskipper opened this issue Apr 4, 2023 · 2 comments

Comments

@moodymudskipper
Copy link

Since it's rude to register a method if we don't own the class or the generic, this would provide a way to register the method just for a call, and then set things back to the initial state.

@lionel-
Copy link
Member

lionel- commented Apr 4, 2023

We use rlang::with_bindings(.env = globalenv()) for that, it dispatches via the global env.

@moodymudskipper
Copy link
Author

Thanks Lionel that works beautifully.
Maybe a wrapper would make it easier to find this feature ?

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

2 participants