From sfalcon at fhcrc.org  Wed Jan 11 16:18:25 2006
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Wed, 11 Jan 2006 07:18:25 -0800
Subject: [Rd] problem with replicate and "..." (PR#8473)
In-Reply-To: <20060111115023.15174206ED@slim.kubism.ku.dk> (jason@cs.jhu.edu's
	message of "Wed, 11 Jan 2006 12:50:23 +0100 (CET)")
References: <20060111115023.15174206ED@slim.kubism.ku.dk>
Message-ID: <m27j96n67y.fsf@fhcrc.org>

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



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