Skip to content
Back to formatted view

Raw Message

Message-ID: <971536df0602201658p5348089lb4afb0697c04f6de@mail.gmail.com>
Date: 2006-02-21T00:58:54Z
From: Gabor Grothendieck
Subject: do.call, browser and traceback
In-Reply-To: <f8e6ff050602201649h40e47c64u43307ae3cab716a9@mail.gmail.com>

If f is long then you can get some savings like this:

  do.call("f", mtcars)  # note: used "f" rather than f

This does not solve the whole problem but its a step.

On 2/20/06, hadley wickham <h.wickham at gmail.com> wrote:
> 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 at 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
>