[Rd] delayedAssign

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed, 19 Sep 2007 15:30:30 -0400


The last two lines of example(delayedAssign) give this:

> e <- (function(x, y = 1, z) environment())(1+2, "y", {cat(" HO! "); pi+2})
> (le <- as.list(e)) # evaluates the promises
$x
<promise: 0x032b31f8>
$y
<promise: 0x032b3230>
$z
<promise: 0x032b3268>

which contrary to the comment appears unevaluated. Is the comment wrong or is it supposed to return an evaluated result but doesn't?

> R.version.string # Vista
[1] "R version 2.6.0 alpha (2007-09-06 r42791)"



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 19 Sep 2007 - 19:34:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 27 Sep 2007 - 02:42:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.