[R] R CMD check
Thomas Lumley
tlumley at u.washington.edu
Wed May 15 20:37:43 CEST 2002
On Wed, 15 May 2002, Frank E Harrell Jr wrote:
>
> Second, I get this message:
>
> Objects with usage in documentation object 'aregImpute' but missing from
> code: [1] "plot" "print"
>
> The aregImpute function, like many others, has under the Usage section
> code such as plot(object) and print(object) but the aliases at the top
> of the .Rd file point to plot.aregImpute and print.aregImpute. To me
> there should not be a warning about this.
You can document plot.aregImpute with usage plot(object) using the \method
command
Eg
\alias{print.survfit}
\usage{
\method{print}{survfit}(x, scale=1,digits = max(options()$digits - 4,
3), print.n=getOption("survfit.print.n"), show.rmean=getOption("survfit.print.me
an"),...)
}
will display as
Usage:
print(x, scale=1,digits = max(options()$digits - 4,
3), print.n=getOption("survfit.print.n"), show.rmean=getOption("survfit.pri
nt.mean"),...)
but CMD check knows that it is documenting print.survfit.
-thomas
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list