promptMethods {methods} | R Documentation |
Generates a shell of documentation for the methods of a generic function.
promptMethods(f, filename, methods)
f |
The name of the generic function whose methods are to be documented. |
filename |
Optional file on which to write the documentation
shell. If supplied, it can be the name of a file, a connection, or If The default file name is the same as the coded
topic name for these methods (currently |
methods |
Optional methods list object giving the methods to be
documented. By default, the first methods object for this generic is
used (for example, if the current global environment has some
methods for If this argument is supplied, it is likely to be |
If filename
is FALSE
, the text generated; otherwise, the
name of the file written.
The R package methods
implements, with a few exceptions, the
programming interface for classes
and methods in the book Programming with Data (John
M. Chambers, Springer, 1998), in particular sections 1.6, 2.7, 2.8,
and chapters 7 and 8.
While the programming interface for the methods package follows the reference, the R software is an original implementation, so details in the reference that reflect the S4 implementation may appear differently in R. Also, there are extensions to the programming interface developed more recently than the reference. For a discussion of details and ongoing development, see the web page http://developer.r-project.org/methodsPackage.html and the pointers from that page.
prompt
and
promptClass