RConsortium / S7

S7: a new OO system for R
https://rconsortium.github.io/S7
Other
386 stars 32 forks source link

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

Closed hadley closed 8 months ago

hadley commented 9 months ago
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