Re: [Rd] Version of substitute that evaluates it's first argument

2012-07-27 Thread William Dunlap
- > From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On > Behalf > Of Hadley Wickham > Sent: Friday, July 27, 2012 2:53 PM > To: r-devel@r-project.org > Subject: [Rd] Version of substitute that evaluates it's first argument > > Hi all, > > Doe

[Rd] Version of substitute that evaluates it's first argument

2012-07-27 Thread Hadley Wickham
Hi all, Does there already exist a version of substitute that evaluates it's first argument? (i.e. it accepts an already quoted expression). This seems like something that's pretty handy, but I haven't found any existing function to do it: substitute_e <- function(expr, env) { eval(substitute(