[R] with vs. attach

Hadley Wickham h.wickham at gmail.com
Mon May 9 14:29:10 CEST 2016


On Sun, May 8, 2016 at 7:28 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
> Jeff:
>
> That's easy to do already with substitute(), since you can pass around
> an unevaluated expression (a parse tree) however you like. As I read
> it, (admittedly quickly) what it's main feature is that it allows you
> more control over the environment in which the expression is finally
> evaluated -- as well as permitting nested expression evaluation fairly
> easily.
>
> But maybe we're saying the same thing ...  IMHO I think Hadley has
> gone overboard here, worrying about rarely important issues, as you
> seem to be intimating also.

These are absolutely critical issues that crop up as soon as other
people want to write functions that use your functions that use NSE.

Hadley

-- 
http://hadley.nz



More information about the R-help mailing list