[Rd] problem with replicate and "..." (PR#8473)

Seth Falcon sfalcon at fhcrc.org
Wed Jan 11 16:18:25 CET 2006


On 11 Jan 2006, jason at cs.jhu.edu wrote:

> p.s. Note that one workaround is
>
>> bar <- function(n,...) { f <- function() foo(...); 
> +                          replicate(n,f()) }

Another appears to be:

bar <- function(n, ...) {
    args <- list(...)
    replicate(n, do.call("foo", args))
}

+ seth



More information about the R-devel mailing list