Skip to content

"S4"-style methods and classes in R

1 message · John Chambers

#
A preliminary version of an R package for classes and methods is
available from the omegahat web site:

	  http://www.omegahat.org/RSMethods/index.html

Documentation and source for download are available from this page.

The goal is to support an API that would provide compatible facilities
for defining classes and methods in R and S-Plus.  For the moment, the
"API" is roughly taken from "Programming with Data", particularly
section 1.6.

A revised version of that section is available, from the web page
above, modified a bit for R use.

This is a preliminary version;  comments and suggestions on any aspect
would be much appreciated, before going more "public" with it.

The current version is all written in the S language, for
flexibility.  Key portions (method dispatch at the least) will be
implemented in C later on for efficiency.

Regards,
 John Chambers