The eval() call could also throw an error that would leave the input
environment modified. Better change along the lines described in the
bug report at
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17831
Best,
luke
On Tue, 16 Jun 2020, Raimundo Neto wrote:
Dear all
As far as I could t
Dear all
As far as I could trace, looking at the function C function numeric_deriv,
this unwanted behavior comes from the inner most loop in, at the very end
of the function,
for(i = 0, start = 0; i < LENGTH(theta); i++) {
for(j = 0; j < LENGTH(VECTOR_ELT(pars, i)); j++, start += LENGTH(ans)) {
Thanks; definitely a bug. I've submitted it to the bug tracker at
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17831
Best,
luke
On Mon, 15 Jun 2020, Raimundo Neto wrote:
Dear R developers,
I've run into a weird behavior of the numericDeriv function (from the stats
package) which I al