The addition of `.traceback` in r70207 adds one more function to the call stack 
when invoking `traceback()`.  This changes the output of one of the examples to 
include the error handler call:


> options(error = function() traceback(2))
> foo(2)
[1] 1
Error in bar(2) : object 'a.variable.which.does.not.exist' not found
3: (function () 
   traceback(2))() at #1
2: bar(2) at #1
1: foo(2)

The attached trivial patch cleans up the example so that the above looks like 
it would have under r<70207.
Index: src/library/base/man/traceback.Rd
===================================================================
--- src/library/base/man/traceback.Rd   (revision 76775)
+++ src/library/base/man/traceback.Rd   (working copy)
@@ -81,6 +81,6 @@
 ## Ah, this is the culprit ...
 
 ## This will print the stack trace at the time of the error.
-options(error = function() traceback(2))
+options(error = function() traceback(3))
 }
 \keyword{programming}
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to