[R] Proper way to document print( ) functions

Frank E Harrell Jr fharrell at virginia.edu
Thu Mar 6 22:11:20 CET 2003


Frequently we have a print method, say print.myclass, that has a variety of arguments.  If in the .Rd file I say

\usage{
\method{print}{myclass}(x, myarg)
}

I get a warning when running R CMD chk:

* checking generic/method consistency ... WARNING
print:
  function(x, ...)
print.myclass:
  function(x, myarg)

What is the proper way to handle this?

Thanks
-- 
Frank E Harrell Jr              Prof. of Biostatistics & Statistics
Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences
U. Virginia School of Medicine  http://hesweb1.med.virginia.edu/biostat



More information about the R-help mailing list