Textual representations of these calls are truncated during the evaluation dump.frames()of his calls limitedLabels().
- , ( ) maxwidth= limitedLabels().
my.dump.frames <-
function (dumpto = "last.dump", to.file = FALSE)
{
calls <- sys.calls()
last.dump <- sys.frames()
names(last.dump) <- limitedLabels(calls, maxwidth=10000)
last.dump <- last.dump[-length(last.dump)]
attr(last.dump, "error.message") <- geterrmessage()
class(last.dump) <- "dump.frames"
if (dumpto != "last.dump")
assign(dumpto, last.dump)
if (to.file)
save(list = dumpto, file = paste(dumpto, "rda", sep = "."))
else assign(dumpto, last.dump, envir = .GlobalEnv)
invisible()
}
dump.frames , , R.
options(error=my.dump.frames)
, , , :
debugger()
# Message: Error in some_function(alongargument = "some long kind of default", anotherlongargument = "more long default something as example", :
# give error
# Available environments had calls:
# 1: outerFunction()
# 2:
# 3:
# 4:
#
# Enter an environment number, or 0 to exit Selection: