Skip to content
Prev 69603 / 398525 Next

assigning to a list in a package environment

I did not fully understand which environment you want but:

1. if this is written in your function:  e <- environment()
    then e contains the current environment in the function

2. parent.env(e)   is the lexical environment within which
    your function was defined.  Also, if the function is called
    f then environment(f) gives this too.

3. parent.frame() is the environment from which your 
    function was called.
On 5/12/05, Sean Davis <sdavis2 at mail.nih.gov> wrote: