Currently, this raises an error:
library(S7)
an_s3_generic <- function(x) UseMethod("an_s3_generic")
method(an_s3_generic, S7::class_character) <- function(x) "foo"
#> Error: When registering methods for S3 generic an_s3_generic(), signature must be an S7 class, not a base type.
It would be nice if this worked and method<- was truly a single interface for registering any kind of method.
Currently, this raises an error:
It would be nice if this worked and
method<-was truly a single interface for registering any kind of method.