Rev 19029 | Rev 25410 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{promptMethods}\alias{promptMethods}\title{ Generate a Shell for Documentation of Formal Methods }\description{Generates a shell of documentation for the methods of a genericfunction.}\usage{promptMethods(f, filename, methods)}\arguments{\item{f}{ The name of the generic function whose methods are to bedocumented.}\item{filename}{ Optional file on which to write the documentationshell. If supplied, it can be the name of a file, a connection, or \code{FALSE}.If \code{FALSE}, the text is returned, presumably to be insertedsome other documentation file, such as the documentation of thegeneric function itself (see \code{\link{prompt}}).The default file name is the same as the codedtopic name for these methods (currently \code{"f-methods.Rd"}.}\item{methods}{Optional methods list object giving the methods to bedocumented. By default, the first methods object for this generic isused (for example, if the current global environment has somemethods for \code{f}, these would be documented).If this argument is supplied, it is likely to be \code{getMethods(f,where)}, with \code{where} some package containing methods for \code{f}.}}\value{If \code{filename} is \code{FALSE}, the text generated; otherwise, thename of the file written.}\seealso{\code{\link{prompt}} and\code{\link{promptClass}}}\references{The R package \code{methods} implements, with a few exceptions, theprogramming interface for classesand methods in the book \emph{Programming with Data} (JohnM. 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 inthe reference that reflect the S4 implementation may appeardifferently in R. Also, there are extensions to the programminginterface developed more recently than the reference. For adiscussion of details and ongoing development, see the web page\url{http://developer.r-project.org/methodsPackage.html} and thepointers from that page.}\keyword{programming}\keyword{methods}