Skip to content
Prev 49768 / 63424 Next

Inspect a "delayed" assigned whose value throws an error?

If it was any other environment than the global, you could use substitute:

e <- new.env()
delayedAssign("foo", stop("Hey!"), assign.env = e)
substitute(foo, e)

delayedAssign("foo", stop("Hey!"))
substitute(foo)

Hadley
On Mon, Jan 26, 2015 at 12:53 PM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote: