Re: [R] ow to have R automatically print traceback upon errors

2009-11-26 Thread Hao Cen
.@gmail.com] Sent: Monday, November 23, 2009 11:00 PM To: Hao Cen Cc: r-help@r-project.org Subject: Re: [R] ow to have R automatically print traceback upon errors I use this: options(error=utils::recover) and anytime an error occurs in the interactive mode, it will print out the traceback and

Re: [R] ow to have R automatically print traceback upon errors

2009-11-23 Thread jim holtman
I use this: options(error=utils::recover) and anytime an error occurs in the interactive mode, it will print out the traceback and then allow you to explore the variables at each level of the stack; just like putting 'browser()' in the code at the error point. Here is what I get in running under

[R] ow to have R automatically print traceback upon errors

2009-11-23 Thread Hao Cen
Hi, I wonder how to have R automatically print stack trace produced by traceback upon errors during interactive uses. I tried the suggestions on http://old.nabble.com/Automatically-execute-traceback-when-execution-of-script-causes-error--td22368483.html#a22368775 and used options(error = recover)