library("reftip")
rex <- animal("Rex", "woof")
print.animal(rex)An animal
Description
A minimal S3 class. Exists only to demo the case downlit can’t resolve on its own: a call to an S3 method written out by its full dotted name.
Usage
animal(name, sound)
## S3 method for class 'animal'
print(x, ...)
Arguments
name
|
Character. The animal’s name. |
sound
|
Character. The sound it makes. |
x
|
An ‘animal’ object. |
…
|
Unused. |
Value
An object of class ‘animal’.