Re: [R] error handling in R/ lapack routines

2003-09-04 Thread Spencer Graves
yes: From "?optim", I get the following: optim(par, fn, gr = NULL, method = c("Nelder-Mead", "BFGS", "CG", "L-BFGS-B", "SANN"), lower = -Inf, upper = Inf, control = list(), hessian = FALSE, ...) By "fn", I meant the function you supply for that argument. spencer

Re: [R] error handling in R/ lapack routines

2003-09-04 Thread Spencer Graves
I just did a Google search for "lapack error codes" and got several hits. However, I don't know if a translation of "error code 17" would really help you. Have you tried "fn" as a stand-alone function? If yes, have you tried including a "cat" or "print" statement in it, so it prints the

[R] error handling in R/ lapack routines

2003-09-04 Thread Hae-Kyung Im
Does any of you know where I can find an explanation of lapack errors codes? I get error code 17 when using optim(). Is there a way to handle errors in R such that depending on the type of error I can decide what to do next? Thanks, Haky __ [EMAIL PR