Skip to content
Prev 11738 / 398502 Next

Pass-through of unevaluated arguments

fharrell at virginia.edu writes:
I think 

eval(substitute(xyplot(...)), data, environment(formula))

will get you there if xYplot is function(formula,data,...).
environment(formula) is somewhat preferable to parent.frame() in
general, although they're usually the same thing. 

The tricky bit is when you want to mix external arguments with
something computed inside xYplot. We just had this aired on R-core in
a similar context, and I *think* you get by with substituting in local
variables (notice that R's substitute() is not quite identical to
S's).