Last data update: 2014.03.03

R: Toy example of a S4 package
packS4-packageR Documentation

Toy example of a S4 package

Description

This package is a toy example build to illustrate the construction of an S4 package as explain in the tutorial S4 : From An Idea To Its Package.

Details

Package: packS4
Type: Package
Version: 0.9.1
Date: 2012-05-01
License: GPL (>=2.0)
LazyLoad: yes
Depends: methods,graphics

This package is a toy example build to illustrate the construction of a package as explain in the book Book: "Petit Manuel de Programmation Orientee Objet sous R" There is mainly two classes. May be there is another one, but it is a secret...

Author(s)

Christophe Genolini <genolini@u-paris10.fr>

References

Book: "Petit Manuel de Programmation Orientee Objet sous R"

See Also

packClassic is another toy example build to illustrate the construction of a classic (non S4) package.

Examples

### classW is the constructor of ClassW object
www <- classW(u1=3,u2=4,w1="Title")

### plot is a method for ClassW
plot(www)

### There is no constructor for ClassV (which is bad !)
new("ClassV",v1=2,v2=3)

Results