From maechler at stat.math.ethz.ch  Wed Aug 31 09:34:47 2005
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Wed, 31 Aug 2005 09:34:47 +0200
Subject: [Rd] generic function argument list problem
In-Reply-To: <4EC54477-49E9-4F03-8151-5339D493895B@soc.soton.ac.uk>
References: <4EC54477-49E9-4F03-8151-5339D493895B@soc.soton.ac.uk>
Message-ID: <17173.23959.702128.595982@stat.math.ethz.ch>

>>>>> "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?



[Rd] generic function argument list problem
Martin Maechler