Re: [Rd] generic function argument list problem

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Wed 31 Aug 2005 - 07:34:47 GMT

>>>>> "Robin" == Robin Hankin <r.hankin@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?



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Aug 31 17:41:40 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:46 GMT