sys.calls {reflections} | R Documentation |
These functions provide access to environments (‘frames’ in S terminology)
associated with functions further up the calling stack.
sys.calls();
sys.calls and sys.frames give a pairlist of all the active calls and frames, respectively, and sys.parents returns an integer vector of indices of the parent frames of each of those frames.