[Rd] methods package: inheriting from structures; group generics
Mon, 29 Apr 2002 15:16:38 -0400
Now that 1.5 is released, some changes have been committed to the
r-devel version of the methods package.
They are mostly bug fixes (or making things work more as users would
expect) in two areas:
1. new classes that extend one of the basic datatypes that have
attributes but had no class attribute in S3 (e.g., "matrix" or "ts").
The previous code didn't handle the attributes properly and the new()
function didn't work as it should.
2. group generic functions when the members of the group were
primitives. Because the members of the group are never actual generic
functions (for reasons of efficiency), there was no easy way to turn
method dispatch on, and the callGeneric function was unable to find the
It is still necessary to turn method dispatch on in this case (see
?setGeneric) by calling something like:
This requirement may be dropped later, depending on experience.
John M. Chambers firstname.lastname@example.org
Bell Labs, Lucent Technologies office: (908)582-2681
700 Mountain Avenue, Room 2C-282 fax: (908)582-3340
Murray Hill, NJ 07974 web: http://www.cs.bell-labs.com/~jmc
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: email@example.com