Ah-ha. The trick is to call q()
. In the help for dump.frames
:
options(error = quote({dump.frames(to.file = TRUE); q()}))
and to use traceback
(and function
instead of quote
),
options(error = function(){ traceback(); q()} )
would do it.