[Rd] diff.default / diff.ts in wrong package bug (PR#640)
Martin Maechler
Martin Maechler <maechler@stat.math.ethz.ch>
Wed, 23 Aug 2000 09:39:47 +0200 (CEST)
>>>>> "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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._