From hadley at rice.edu  Wed Sep  9 15:30:57 2009
From: hadley at rice.edu (Hadley Wickham)
Date: Wed, 9 Sep 2009 08:30:57 -0500
Subject: [Rd] Finding the environment of a promise
Message-ID: <f8e6ff050909090630t69a76ca7k2c4ea4cc35678d40@mail.gmail.com>

Hi all,

Is it possible to determine the environment in which a promise will be
evaluated?  e.g.

f <- function(code) { force(code) }
f({
  a <- 1
  b <- 2
})

Is there any way to tell from within f that a and b will be created in
the global environment?

Thanks,

Hadley

-- 
http://had.co.nz/



[Rd] Finding the environment of a promise
Hadley Wickham