design icon indicating copy to clipboard operation
design copied to clipboard

Designing S3 generics for extensibility

Open hadley opened this issue 5 years ago • 1 comments

As long as the generic contains ..., R CMD check does not compare the method and generic args. See https://github.com/hadley/s3method for sample package that verifies that.

And R CMD check code (via @jimhester): https://github.com/wch/r-source/blob/7345bdb64fc8f6e30dff7077372137bd0e43fb27/src/library/tools/R/QC.R#L2430-L2434

hadley avatar Apr 28 '20 12:04 hadley

This is not entirely true, see https://github.com/DavisVaughan/methodtest for a counterpoint where ... is in the generic and we still get a warning

DavisVaughan avatar Feb 17 '22 17:02 DavisVaughan