[Rd] truncate

Prof Brian Ripley ripley@stats.ox.ac.uk
Tue, 15 May 2001 18:00:44 +0100 (BST)


On Tue, 15 May 2001, Paul Gilbert wrote:

> I see in the devel snapshot there is a new generic method
>
> > truncate
> function (con, ...)
> UseMethod("truncate")
>
> which conflicts with a generic method in one of my packages:
>
> > truncate
> function (x, start = NULL, end = NULL)
> {
>     UseMethod("truncate")
> }
>
> I don't think there is a problem, but there used to be a recommendation to use the
> same name for the first argument in generic and specific methods. Is that still
> important?

It is desirable in R, important in S, essential in S-PLUS 6.0.

There is already a truncate function in Rstreams, BTW, which this
is intended to supersede.  That (and that in R-devel) do mean the same as
the system call truncate(3c), which I guess yours does not.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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