On May 2, 2013, at 1:36 AM, Tjun Kiat Teo wrote: > I am trying to use the package ode and periodically it will come up with > this error message > > Warning..Internal T (=R1) and H (=R2) are > such that in the machine, T + H = T on the next step > (H = step size). Solver will continue anyway. > > And then the program just take very long to run. Is there anyway to get the > program to terminate when this warning is issued instead of continuing to > run ?
Standard debugging strategy: You set option to terminate when a warning is issued: options(warn=2) ?options # And especially review the examples You can also arrange for R to drop back into the browser(): ?browser -- David Winsemius Alameda, CA, USA ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

