Programming with S4 classes and methods

Where to look for information on programming with S4 system of classes and methods for R? Here is a open-ended collection of links to resources on learning programming in S4 system. Suggestions more than welcome!


  • John M. Chambers. Programming with Data. Springer, New York, 1998. ISBN 0-387-98503-4. Some more info here
  • John M. Chambers. Software for Data Analysis: Programming with R. Springer, New York, 2008. ISBN 0387759352, 9780387759357.

Articles and notes

Presentation slides


Sometimes it is worthwhile to look at the source code of the available packages and learn from that. Here is are the packages that can be instructive: 'stats4', 'lme4'.