Re: [R] R CMD check

About this list Date view Thread view Subject view Author view Attachment view

From: Thomas Lumley (tlumley@u.washington.edu)
Date: Thu 16 May 2002 - 04:37:43 EST


Message-id: <Pine.A41.4.44.0205151134070.99196-100000@homer21.u.washington.edu>

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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:17 EST