Skip to content

Line numbers with errors and warnings?

1 message · jim holtman

#
One thing that I do when I have a long script is to put "progress"
report messages.  These have some comments so I can chart the progress
and also print out the current CPU and memory usage so I can also
isolate where potential problems might be.  This will help narrow down
the section of code where the error occurred.  Are you also running
with

options(error=utils::recover)

so that when the error occurs, you get the stack and current
environment so that debugging is easier?
On Fri, Nov 30, 2012 at 4:22 PM, Worik R <worikr at gmail.com> wrote: