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?

Paul

        [[alternative HTML version deleted]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to