On Fri, Mar 7, 2008 at 3:15 PM, hadley wickham <[EMAIL PROTECTED]> wrote:
> 2008/3/7 Ben Bolker <[EMAIL PROTECTED]>:
> >
>
> >Despite the spirited arguments of various R-core folks
> > who feel that mle() doesn't need a "data" argument, and
> > that users would be better off learning to deal
2008/3/7 Ben Bolker <[EMAIL PROTECTED]>:
>
>Despite the spirited arguments of various R-core folks
> who feel that mle() doesn't need a "data" argument, and
> that users would be better off learning to deal with function
> closures, I am *still* trying to make such things work
> in a reason
You can either use the facilities of environments or
the proto package can do this if you take advantage of the fact
that a proto object is an environment:
> library(proto)
> f <- function() {}
> # put a into the environment of f
> do.call(proto, c(list(a = 1), envir = environment(f)))
attr(,"cla
On 3/7/2008 2:02 PM, Ben Bolker wrote:
>Despite the spirited arguments of various R-core folks
> who feel that mle() doesn't need a "data" argument, and
> that users would be better off learning to deal with function
> closures, I am *still* trying to make such things work
> in a reasonably smo