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

Add documentation for how to stub R6 methods #64

Closed
daattali opened this issue Jan 4, 2023 · 3 comments
Closed

Add documentation for how to stub R6 methods #64

daattali opened this issue Jan 4, 2023 · 3 comments

Comments

@daattali
Copy link

daattali commented Jan 4, 2023

The README simply says "This also works with R6 classes and methods." and there is no other documentation or mentions of R6 anywhere. It would be useful to show an example.

@maciekbanas
Copy link

E.g. I would like to know how to mock R6 private methods. (is it possible, or only public?)

@hadley
Copy link
Member

hadley commented Oct 31, 2023

mockery is no longer under active development so I'm closing this issue. We now recommend testthat::local_mocked_binding() instead, but unfortunately that doesn't help with R6 (yet).

@hadley hadley closed this as completed Oct 31, 2023
@hadley
Copy link
Member

hadley commented Oct 31, 2023

I've filed an issue to look into this for testthat: r-lib/testthat#1892

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

3 participants