[Rd] Questions about S4 style methods and generics

Saikat DebRoy saikat@stat.wisc.edu
08 May 2002 11:45:57 -0500


I have some questions about S4 style methods and generics.

First of all, is there any way of using default values for arguments
in the generics/methods? My own experiments show that such arguments
are always ignored. The green book seems to be silent on this
matter.

The second question is about using a non-trivial function body for
generics. Page 351 of the green book gives an example of this and the
documentation for setGeneric seems to suggest I should be able to do
this at least by using myDispatch=TRUE. However, the current
implementation seems to set the body of the generic definition to a
call to standardGeneric all the time. Is this a bug or a modification
of the green book description?

Thanks,

Saikat
-- 
Department of Statistics                       Email: saikat@stat.wisc.edu
University of Wisconsin - Madison              Phone: (608) 263 5948
1210 West Dayton Street                        Fax:   (608) 262 0032
Madison, WI 53706-1685
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._