Displaying 1 result from an estimated 1 matches for "gfwd".
Did you mean:
fwd
2011 Dec 12
1
Detecting typo in function argument
...ckly.
The error is "obvious", but I'm wondering if there is a simple way to trap or warn of it.
For completeness, I include the commands I used to force the error. Note that it will only
work fully with the latest (R-forge) version of optimx/optfntools because of the form of
gr="gfwd" that allows a choice of different numerical gradient routines.
This is a curiosity rather than a necessity, but if there is a simple way to check, I'll
put it in my codes.
Cheers,
JN
rm(list=ls())
start<-rep(3,6)
lo<-rep(2,6)
up<-rep(4,6)
flb <- function(x)
{ p <- l...