From Mark.Bravington at csiro.au  Mon May  9 01:24:59 2005
From: Mark.Bravington at csiro.au (Mark.Bravington@csiro.au)
Date: Mon May  9 01:25:12 2005
Subject: [Rd] How to understand packages, namespaces, environments
Message-ID: <4D99275E380CA94F998977EDACE548DC1AE6B0@extas2-hba.tas.csiro.au>

[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. Is one of the
copies a "master", and the other one something like an activeBinding?
Can I get away with changing just one of them?

Mark Bravington


[Rd] How to understand packages, namespaces, environments
Mark.Bravington@csiro.au