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

Allow mocking of R6 classes #1864

Closed
wants to merge 1 commit into from

Conversation

jonathanvoelkle
Copy link

@jonathanvoelkle jonathanvoelkle commented Sep 19, 2023

Allow for mocking R6 classes.

I'm not familiar with the internal details of R6, and whether this simple change captures all the caveats. So this is just a method that worked for me.

EDIT: did more extensive testing - this should work

Committer: Jonathan Völkle <[email protected]>
@jonathanvoelkle jonathanvoelkle changed the title Draft: allow mocking of R6 classes Allow mocking of R6 classes Oct 11, 2023
@hadley
Copy link
Member

hadley commented Nov 29, 2023

Thanks for working on this! But I think we can just drop the is.function() check all together (as in #1896); your PR gives me more evidence that the check isn't need.

@hadley hadley closed this Nov 29, 2023
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

Successfully merging this pull request may close these issues.

2 participants