Skip to content
Prev 34753 / 63421 Next

\\signature macro generated by promptMethods

Hello,

promptMethods generate a macro for signatures, but the macro does not 
exist in the Rd parser.

 > setClass("track",
+          representation(x="numeric", y="numeric"))
[1] "track"
 > setGeneric("foo", function(x){ standardGeneric("foo") } )
[1] "foo"
 > setMethod( "foo", "track", function(x){ NULL } )
[1] "foo"
 > promptMethods( "foo" )
A shell of methods documentation has been written to the file
?foo-methods.Rd?.
 > writeLines( readLines( "foo-methods.Rd" ) )
\name{foo-methods}
\docType{methods}
\alias{foo-methods}
\alias{foo,track-method}
\title{ ~~ Methods for Function foo  ~~}
\description{
  ~~ Methods for function \code{foo}  ~~
}
\section{Methods}{
\describe{
\item{\code{\signature(x = "track")}}{ ~~describe this method here }
}}
\keyword{methods}
\keyword{ ~~ other possible keyword(s)}

Romain