On Fri, Oct 25, 2013 at 11:13 PM, Hadley Wickham
<notifications@github.com>wrote:

> In R/reporter-multi.r:
>
> > +    },
> > +    end_test = function() {
> > +      .oapply(reporters, 'end_test')
> > +    },
> > +    end_context = function() {
> > +      .oapply(reporters, 'end_context')
> > +    },
> > +    end_reporter = function() {
> > +      .oapply(reporters, 'end_reporter')
> > +    }
> > +  )
> > +)
> > +
> > +.oapply <- function(objects, method, ...) {
> > +  for (o in objects)
> > +    eval(substitute(o$FUN(...), list(FUN = method, ...)))
>
> I think that should probably have env = parent.frame()
>
but it is the default for eval() envir arg right ? Do you want it to be
explicit ?

It's a pain that RC objects don't provide a standard way to access methods
> by name.
>
Yes, I was very surprised. I tried using the [[]] operator to get the
method, but because of the cache mechanism it does not work.



> —
> Reply to this email directly or view it on GitHub<https://github.com/hadley/testthat/pull/98/files#r7228608>
> .
>