Re: [R] error related to approxfun in R 2.7.0

From: Karl Marx <tammisiech_at_gmail.com>
Date: Sun, 22 Jun 2008 22:59:49 +0200

Fantastic, works perfectly!
Would you have any pointers to where I can learn more about why/how this works? Thanks!

Regarding the P.S., yes... it seemed appropriate at the time :-)

2008/6/21, Martin Maechler <maechler_at_stat.math.ethz.ch>:
>>>>>> "KM" == Karl Marx <tammisiech@gmail.com>
>>>>>> on Thu, 19 Jun 2008 23:01:31 +0200 writes:
>
> KM> I'm testing R version 2.7.0 on windows and there seems
> KM> to be a compatibility issue with objects that were
> KM> created by "approxfun" in older versions. As long as the
> KM> objects were created in version 2.7.0 things work ok,
> KM> but calling the interpolated functions from R version
> KM> 2.0.1 causes this error:
>
> KM> Error in .C("R_approx", as.double(x), as.double(y),
> KM> as.integer(n), xout = as.double(v), : C symbol name
> KM> "R_approx" not in DLL for package "base"
>
> KM> What's the problem and how can t be resolved (need to be
> KM> compatible with old data)?
>
> approxfun() wa moved from "base" to "stats".
>
> If f <- approxfun(...) in R 2.0.1
> and you save f , load it in R 2.7.0,
> you can do
>
> body(f)[[2]][["PACKAGE"]] <- "stats"
>
> and then use f(..) in R 2.7.0.
>
> Martin Maechler, ETH Zurich
>
> PS: Do I guess correctly, that you are Swiss?
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 22 Jun 2008 - 21:05:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 22 Jun 2008 - 21:31:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive