[R] get the bug context

Luke jyzz88 at gmail.com
Sun May 29 21:15:02 CEST 2005


Hi R-users,

How to get a bug contex? 

My R code ran there for several hours, but a bug crashed it, printing
such message like "Error: subscript out of bounds". I want to use
browser() to catch the bug, but I don't know which loop caused the bug
(there are many loops in the code). I even don't know which line of
code caused the bug. Is there any utility or something in R which can
let you know which line of code causes a bug?

Thanks,

-Luke




More information about the R-help mailing list