[R-pkg-devel] Effieciency drop in do.call?

Paul Buerkner p@ul@buerkner @ending from gm@il@com
Mon Nov 19 17:49:56 CET 2018

Hi all,

today, I stumbled upon a puzzling (to me) problem apparently related to
do.call() that resulted
in an efficiency drop of multiple orders of magnitudes compared to just
calling the function directly (multiple minutes as compared to one second).

That is

fun(a = a, b = b, c = c, ...)

took one second, while

args <- list(a = a, b = b, c = c, ...)
do.call(fun, args)

took multiple minutes.

In my package (brms), I use do.call in various places but only in one it
resulted in this
efficiency drop.

Before I try to make a reproducible example, I wanted to ask if there are
any known issues
with do.call that may explain this?


	[[alternative HTML version deleted]]

More information about the R-package-devel mailing list