Skip to content

deparse substitute

2 messages · Berry Boessenkool, Duncan Murdoch

#
On 13-01-09 5:03 AM, Berry Boessenkool wrote:
Probably the R Language definition, section 2.1.8.  The basic 
explanation for the behaviour you see is that deparse(substitute(input)) 
acts on the "input" promise object, looking at its expression slot. It's 
not doing any magic examination of the context in which it was 
originally defined.

Once you modify it, it is no longer a promise, and so it has no 
expression slot.

Duncan Murdoch