From Martin Maechler <maechler@stat.math.ethz.ch>  Wed Aug 23 08:39:47 2000
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Wed, 23 Aug 2000 09:39:47 +0200 (CEST)
Subject: [Rd] diff.default / diff.ts in wrong package bug (PR#640)
In-Reply-To: <x2bsylfd1c.fsf@blueberry.kubism.ku.dk>
References: <200008221636.SAA03685@pubhealth.ku.dk>
 <x2bsylfd1c.fsf@blueberry.kubism.ku.dk>
Message-ID: <14755.32707.497714.333996@gargle.gargle.HOWL>

>>>>> "PD" == Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

    PD> maechler@stat.math.ethz.ch writes:
    >> One easy and "clean" fix is to put the following at the very
    >> beginning of diff.default :
    >> 
    >> if(is.ts(x)) { require(ts)
    >>                UseMethod("diff") }
    PD> ...
    >> The above passes "make check" (and more).
    >> 
    >> Anybody against this?

    PD> I'm not really pro or con, but what is wrong with autoloading
    PD> diff.ts??

it does not work, i.e.

   autload("diff.ts", "ts")
   diff(ts(1:10))

does not load package ts.
It's not so clear if this is a bug in method dispatching ...
but assuming ``standard semantic'' (diff.ts is in search() i.e. diff()
				    should dispatch to it),
it is one..

Shall I 
 1) commit my proposed change to "R-release-patches" (since it fixes a bug
						     in R 1.1.1)
 2) submit a new bug report  about the non-dispatching to "Autoloads"
    objects
?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] diff.default / diff.ts in wrong package bug (PR#640)
Martin Maechler