Learn R Programming

R.oo (version 1.2.7)

R.oo-package: Package R.oo

Description

Methods and classes for object-oriented programming in R with or without references. Large effort has been made on making definition of methods as simple as possible with a minimum of maintainance for package developers. For example, generic functions are created automatically, if missing, and name conflict are automatically solved, if possible. The method setMethodS3() is a good start for those who in the future want to migrate to S4. The package has been developed since 2001 and is now considered very stable. Please note that the Rdoc syntax/grammar used to convert Rdoc comments in code into Rd files is not strictly defined and is modified by the need of the author. Ideally, there will be a well defined Rdoc language one day.

Arguments

Installation and updates

To install this package do install.packages("R.oo") To get the "devel" version, see http://www.braju.com/R/.

Dependancies and other requirements

This package only requires a standard Rinstallation. This is a cross-platform package implemented in pure R.

To get started

To get started, see:
  1. setMethodS3() - Simple and safe creation of S3 methods and, whenever needed, automatic creation of S3 generic function.
  2. Object- Root class providing support for reference variables. Any class inheriting from this class supports reference variables.

Further readings

For a detailed introduction to the package see [1]. To define static fields, see help on Object.

How to cite this package

Whenever using this package, please cite [1] as @INPROCEEDINGS{BengtssonH_2003, author = {Henrik Bengtsson}, title = {The {R.oo} package - Object-Oriented Programming with References Using Standard {R} Code}, booktitle = {Proceedings of the 3rd International Workshop on Distributed Statistical Computing (DSC 2003)}, year = {2003}, editor = {Kurt Hornik and Friedrich Leisch and Achim Zeileis}, address = {Vienna, Austria}, month = {March}, issn = {1609-395X}, howpublished = {http://www.ci.tuwien.ac.at/Conferences/DSC-2003/}, }

License

The releases of this package is licensed under LGPL version 2.1 or newer.

References

[1] H. Bengtsson, The R.oo package - Object-Oriented Programming with References Using Standard R Code, In Kurt Hornik, Friedrich Leisch and Achim Zeileis, editors, Proceedings of the 3rd International Workshop on Distributed Statistical Computing (DSC 2003), March 20-22, Vienna, Austria. http://www.ci.tuwien.ac.at/Conferences/DSC-2003/Proceedings/