Re: [Rd] Help for methods

From: hadley wickham <>
Date: Sat 30 Sep 2006 - 05:15:32 GMT

> I think the spirit of Hadley's request could be handled by introducing a
> declaration for S3 methods and by inserting S4-style alias{} lines into
> their documentation. For example, if a function, say
> setOldGeneric("summary"), similar to setOldClass, informed the system that
> "summary" was an S3 generic, then having an alias for "summary.lm-method" in
> the summary.lm.Rd file would allow a consistent set of documentation tools
> to work on those S3 methods and on S4 methods.

That seems like a really nice idea. I'd imagine that a lot of the setOldGeneric methods could be added automatically by looking for functions of the form function(x, ...) UseMethod("...", x) - any that were missed could then be added by hand.

Hadley mailing list Received on Sat Sep 30 15:17:44 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 30 Sep 2006 - 05:30:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.