From ggrothendieck at gmail.com  Mon May  9 01:46:31 2005
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Mon May  9 01:46:39 2005
Subject: [Rd] How to understand packages, namespaces, environments
In-Reply-To: <4D99275E380CA94F998977EDACE548DC1AE6B0@extas2-hba.tas.csiro.au>
References: <4D99275E380CA94F998977EDACE548DC1AE6B0@extas2-hba.tas.csiro.au>
Message-ID: <971536df050508164627376868@mail.gmail.com>

On 5/8/05, Mark.Bravington@csiro.au <Mark.Bravington@csiro.au> wrote:
> [Alexander Stoddard]
> > Subject: Re: [Rd] How to understand packages, namespaces, environments
> >
> > >
> > > Does saying the following load package 'foo' into its own
> > environment ?
> > >  > library(foo)
> >
> [Duncan Murdoch]
> > This loads some of the (name, object) pairs from the package into two
> > environments:  the public one the user can see, and the
> > namespace one that the code in the package can see.  They're
> > related, you don't get two copies of the objects.
> 
> That's interesting-- I thought there really were two copies. In my debug
> package, I've taken the approach of changing both copies.

How does one refer to the two different copies? Thanks.


[Rd] How to understand packages, namespaces, environments
Gabor Grothendieck