new.frame(what = list(), protect = T)
new.frame
.
TRUE
, the initial list will be copied into the new frame.
Only if this is done, can
move.frame
be called safely on the
resulting frame.
If you do not plan to use
move.frame
to pass the frame back to
another function, and
what
is large, then setting
protect
to
FALSE
can save some space.
eval
as the
local=
argument
to evaluate expressions in the new frame.
The purpose of
new.frame
is to provide a locale for computations
that can be shared among various functions.
Creates an evaluation frame and returns the index of the new frame
in the vector of evaluation frames. Use
clear.frame
to free the frame when it is
no longer needed. However,
clear.frame
is optional. The frame made by
new.frame
will be freed when its parent frame is freed (or when
new.frame
is called). Its parent frame
is originally the frame from which
new.frame
is called, but that can be
changed by calling
move.frame