Displaying 1 result from an estimated 1 matches for "mytest_approx".
2008 Mar 26
0
approxfun + save: problem as R_approx changed package
...6.2 (from 2.5.0 I was using) on Windows XP.
I have a fair amount of previous data saved in the form of "approxfun" objects created by version 2.5.0, with code basically like this:
> x <- rlnorm(100,10,2)
> f <- approxfun(1:100,x)
> f(5)
[1] 313811.3
> save(f, file="mytest_approx.Rdata")
Now on 2.6.2, when I try to reuse the saved object I get an error:
> attach("mytest_approx.Rdata")
> f(5)
Error in .C("R_approx", as.double(x), as.double(y), as.integer(n), xout = as.double(v), :
C symbol name "R_approx" not in DLL for package &...