Skip to content
Prev 154721 / 398503 Next

email just sent

ivo welch wrote:
parent.frame() will give you the frame of the caller.  For example, in 
the browser,

caller <- parent.frame()
ls(caller)
caller$foo

etc.  parent.frame() has an arg specifying how far up the stack you want 
to go.  There's also the browser() command "where" which shows you the 
calling stack, to tell you what to pass to parent.frame.

Duncan Murdoch