[R] How to catch errors regarding the hessian in 'optim'
Michael Meyer
spyqqqdia at yahoo.com
Thu Sep 26 17:49:30 CEST 2013
I am weighing in even though I know nothing.
in tryCatch define an error handler
error = function(e){
text <- print(e) # surely there must be better ways
# parse text for substring 'optim' or more strongly characteristic substrings
# you have already seen to emerge from optim
# do what you have to do if such is detected
}
Sorry if this answer seems trivial.
Michael Meyer
More information about the R-help
mailing list