Skip to content
Prev 5143 / 12125 Next

[R-pkg-devel] slightly polemic question re R CMD check

R encourages the use of ... particularly in S3 generics, to avoid over-depending on inheritance to enable flexible use of these generics. That is, when you call the generic without knowing which class you are giving it, you cannot specify class-specific arguments. However, some methods have obvious alternative class-specific behaviors that are typically enabled using class-specific arguments (e.g. plot). You cannot support both fully-generic calls and class-specific calls without giving the generic some flexibility that won't get used in some cases.
On March 8, 2020 9:41:51 AM PDT, David Hugh-Jones <davidhughjones at gmail.com> wrote: