[Rd] generic function argument list problem
Martin Maechler
maechler at stat.math.ethz.ch
Wed Aug 31 09:34:47 CEST 2005
>>>>> "Robin" == Robin Hankin <r.hankin at noc.soton.ac.uk>
>>>>> on Wed, 31 Aug 2005 08:09:15 +0100 writes:
................
Robin> I am writing a rep() method for objects with class "octonion", and
Robin> my function rep.octonion() has argument list (x, times, length.out,
Robin> each, ...)
Robin> just like rep.default(), but R CMD check complains about it, pointing
Robin> out that rep() and rep.octonion() have different arguments.
Hmm, not exactly, ``like rep.default'', I'm pretty sure.
Why not peek into R's <source>/src/library/base/man/rep.Rd
which has
\usage{
rep(x, times, \dots)
\method{rep}{default}(x, times, length.out, each, \dots)
}
and definitely passes R CMD check without a warning.
Robin> What do I have to do to my rep.octonion() function to make my package
Robin> pass R CMD check without warning?
More information about the R-devel
mailing list