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

method_ doesn't error correctly if method not found #387

Closed
hadley opened this issue Nov 27, 2023 · 0 comments · Fixed by #391
Closed

method_ doesn't error correctly if method not found #387

hadley opened this issue Nov 27, 2023 · 0 comments · Fixed by #391

Comments

@hadley
Copy link
Member

hadley commented Nov 27, 2023

library(S7)

foo <- new_generic("foo", "x")
method(foo, object = "x")
#> Error in method(foo, object = "x"): 'Rf_getCharCE' must be called on a CHARSXP, but got 'NULL'

Created on 2023-11-27 with reprex v2.0.2.9000

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 a pull request may close this issue.

1 participant