|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
\\signature macro generated by promptMethodsHello,
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 -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/EAD5 : LondonR slides |- http://tr.im/BcPw : celebrating R commit #50000 `- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc ______________________________________________ R-devel@... mailing list https://stat.ethz.ch/mailman/listinfo/r-devel |
|
|
Re: \\signature macro generated by promptMethodsOn 09/11/2009 7:39 AM, Romain Francois wrote:
> Hello, > > promptMethods generate a macro for signatures, but the macro does not > exist in the Rd parser. Right, that's not supposed to be a macro. See ?cbind2 for an example, \item{\code{signature(x = "ANY", y = "ANY")}}{the default method using \R's internal code.} Duncan Murdoch > > > 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 > ______________________________________________ R-devel@... mailing list https://stat.ethz.ch/mailman/listinfo/r-devel |
|
|
Re: \\signature macro generated by promptMethodsOn 11/9/2009 8:12 AM, Duncan Murdoch wrote:
> On 09/11/2009 7:39 AM, Romain Francois wrote: >> Hello, >> >> promptMethods generate a macro for signatures, but the macro does not >> exist in the Rd parser. > > Right, that's not supposed to be a macro. See ?cbind2 for an example, > > \item{\code{signature(x = "ANY", y = "ANY")}}{the default method > using \R's internal code.} promptMethods() is now fixed in R-devel and R-patched. Duncan Murdoch > > Duncan Murdoch > > >> >> > 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 >> > > ______________________________________________ > R-devel@... mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel ______________________________________________ R-devel@... mailing list https://stat.ethz.ch/mailman/listinfo/r-devel |
| Free embeddable forum powered by Nabble | Forum Help |