maechler@stat.math.ethz.ch
2000-Aug-24 15:08 UTC
[Rd] Method dispatch fails for autoloaded methods (PR#642)
(As mentioned before, on R-devel) This code snippet shows what the Subject above says :> autoload("diff.ts", file="ts") > diff(ts(1:10,freq=2))Error in tsp<-(*tmp*, value = c(xtsp[1] + lag * differences * xtsp[3], : invalid time series parameters specified> traceback()[1] "tsp<-(*tmp*, value = c(xtsp[1] + lag * differences * xtsp[3], " [2] " xtsp[2], xtsp[3]))" [3] "diff.default(ts(1:10, freq = 2))" [4] "diff(ts(1:10, freq = 2))" [The R version doesn't matter; this has been true for 1.1.x as well] --please do not edit the information below-- Version: platform = i686-pc-linux-gnu arch = i686 os = linux-gnu system = i686, linux-gnu status = Under development (unstable) major = 1 minor = 2.0 year = 2000 month = 08 day = 24 language = R Search Path: .GlobalEnv, package:SfS, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thomas Lumley
2000-Aug-24 17:08 UTC
[Rd] Method dispatch fails for autoloaded methods (PR#642)
On Thu, 24 Aug 2000 maechler@stat.math.ethz.ch wrote:> (As mentioned before, on R-devel) > > This code snippet shows what the Subject above says :The problem is that isFunction is false for diff.ts, since it is only a promise, not a function. I think the solution is for usemethod to force the promise (in lines 225ff of objects.c), but I'm not sure how to do this. -thomas -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._