[R] do.call, browser and traceback

From: hadley wickham <h.wickham_at_gmail.com>
Date: Tue 21 Feb 2006 - 11:49:25 EST


A problem that I've encountered when using do.call a lot is very large stack traces, eg:

f <- function(x) stop()
do.call(error, mtcars)
traceback()
f <- function(x) browser()
do.call(f, mtcars)

I have hacked together my own version of traceback to fix this by limiting the length of each line to 80 characters, but I can't see any way to do something similar for browser. Any suggestions?

Thanks,

Hadley



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Feb 21 11:53:56 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:38 EST