[Rd] call / do.call expression too big

Hadley Wickham hadley at rice.edu
Mon Jun 6 01:27:40 CEST 2011

On Sun, Jun 5, 2011 at 4:25 PM, Jeroen Ooms <jeroen.ooms at stat.ucla.edu> wrote:
>> argn <- lapply(names(args), as.name)
>> names(argn) <- names(args)
>> call <- as.call(c(list(as.name("lm")), argn))
>> eval(call, args)
> Great, almost! Is there any way I can explicitly specify the package of the
> function in this way? I tried replacing "lm" with "stats::lm" but that did
> not work.

Hmmm, not sure.  Maybe something like: call("::", as.name("stats"),


Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University

More information about the R-devel mailing list