packS4-package: Toy example of a S4 package

Description Details Author(s) References See Also Examples

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

1
2
3
4
5
6
7
8
### 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)

packS4 documentation built on May 2, 2019, 9:25 a.m.