Re: [R] dumpClass, hasSlot in R?

From: Marc Schwartz <>
Date: Thu 22 Jul 2004 - 07:07:37 EST

On Wed, 2004-07-21 at 15:53, hadley wickham wrote:
> There are a few notes about difference between the R implementation
> and the book at
> I found the hardest thing to get to grips in R was method calling -
> using multiple dispatch (totally different to what I'm used to from
> Java, Python etc.). I found this tutorial
> (, the sections on
> generic functions and multiple-dispatch) very useful. However, it is
> for another programming language, and although the method and class
> creation process feels very similar to R, the syntax is quite
> different. There is definitely scope for a similarly structured
> introduction to S4 classes in R.
> Hadley

I have not done any S4 coding yet, but two references that may be of interest are:

"Converting Packages to S4"
by Doug Bates
R News Vol 3, No. 1, June 2003


"S4 Classes and Methods"
by Fritz Leisch
useR! 2004 Keynote Lecture
Slides available at:

HTH, Marc Schwartz mailing list PLEASE do read the posting guide! Received on Thu Jul 22 07:15:05 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:37:25 EST