I am reading Hadley's "Advanced R", Section 13.4.3 (https://adv-r.hadley.nz/s3.html). It starts

----------------------------------------------------------------
There are two wrinkles to be aware of when you create a new method:

First, you should only ever write a method if you own the generic or the class. R will allow you to define a method even if you don’t, but it is exceedingly bad manners. Instead, work with the author of either the generic or the class to add the method in their code.
----------------------------------------------------------------

I was stunned when I read it. I write methods all over the place for generics like print, summary, plot, etc.

So my question is: Do I "own" those generics, or am I just showing bad manners?

Thanks, Göran

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to