> No, your assumption is backwards. The methods do need to include all
> arguments of the generic. As Writing R Extensions says near the start
> of section 7, "A method must have all the arguments of the generic,
> including … if the generic does."
That's embarrassing. I was worried it was somethi
On Monday, March 11th, 2024 at 12:43 PM, Diego Hernangómez Herrero
wrote:
> Shouldn’t you include the y argument also inmyscale.default ? Your generic is
> defining that argument as well.
I assume (hopefully correctly) that methods don't need to include all the
arguments of the generic. I get
I'm trying to define a new generic, and keep getting an S3 generic/method
consistency when running R CHECK. All of the code seems to be working, and I'm
not getting any note, errors, or other warnings.
This minimal example shows the warning I'm getting. The functions are
myscale <- function(x