Thanks, it seems so obvious now!
baptiste
2009/12/20 Gabor Grothendieck :
> The free variables in a proto method are looked up in the object that
> the method was defined in so by referencing predict within
> test$predict you are referring back to test$predict whereas you mean
> to refer to stats
The free variables in a proto method are looked up in the object that
the method was defined in so by referencing predict within
test$predict you are referring back to test$predict whereas you mean
to refer to stats::predict. Change the line that calls predict to:
stats::predict(.$spline(), x.fin
Dear list,
I made the following example of a proto object that contains some data
and a spline interpolation. I don't understand why test$predict()
fails with this error message:
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
Best regards,
baptiste
test <- pro
3 matches
Mail list logo