Skip to content
Prev 37368 / 63424 Next

parent.frame(1) of a S4 method is not a calling environment.

Vitaly S. wrote:
You could use formulas for that.  If you pass in

formula = ~ x + y*z

then environment(formula) will be the right evaluation environment, and 
formula[[2]] will be the unevaluated x + y*z.

Duncan Murdoch