Skip to content
Prev 40026 / 63424 Next

Using substitute to access the expression related to a promise

On Mon, May 2, 2011 at 9:53 AM, Hadley Wickham <hadley at rice.edu> wrote:
It works differently if the assign environment is the global
environment or not.  This is actually mentioned on the help page for
substitute though its precise meaning may not be completely clear from
the wording.

Try this:
{
    message("assigning...")
    a + b
}