23
23
### Nonlinear least squares for R
26
numericDeriv <- function(expr, theta, rho = parent.frame(), dir=1)
26
numericDeriv <- function(expr, theta, rho = parent.frame(), dir=1.0)
28
28
dir <- rep(dir, length.out = length(theta))
29
29
val <- .Call(R_numeric_deriv, expr, theta, rho, dir)