Skip to content
Prev 366046 / 398502 Next

how do I define a function which is equivalent to `deparse(substitute(x))`?

Thank you, John and David.

Yes someone already came up with that one on Stack Overflow.

Although I don't quite understand how it works - it would be nice to
see a step-by-step explanation of what is getting substituted and
evaluated in which environment. I guess 'eval.parent' must do its own
substituting, just so that it can see the variables you pass to it,
before it actually evaluates its argument. But 'eval' is .Internal...
Maybe if this is less of a mystery to someone else ...

Frederick
On Mon, Dec 12, 2016 at 02:54:14PM -0800, David Winsemius wrote:

        
On Mon, Dec 12, 2016 at 10:07:06PM +0000, Fox, John wrote:
Message-ID: <20161213012749.GF11787@ofb.net>
In-Reply-To: <12F7E3A9-AAE3-423F-973D-1E52E7D11A91@comcast.net> <ACD1644AA6C67E4FBD0C350625508EC8365A83FE@FHSDB2D11-2.csu.mcmaster.ca>