[R] ODE solver

David Winsemius dwinsemius at comcast.net
Thu May 2 16:21:42 CEST 2013

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 # And especially review the examples

You can also arrange for R to drop back into the browser():



David Winsemius
Alameda, CA, USA

More information about the R-help mailing list