From murdoch at stats.uwo.ca  Fri Sep 22 20:29:53 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 22 Sep 2006 14:29:53 -0400
Subject: [Rd] NAMESPACE
In-Reply-To: <45142657.9010309@DecisionSynergy.com>
References: <45142657.9010309@DecisionSynergy.com>
Message-ID: <45142BA1.80506@stats.uwo.ca>

On 9/22/2006 2:07 PM, Dominick Samperi wrote:
> Hello,
> 
> I just tried to use NAMESPACE to prevent name conflicts between
> packages and it appears that once a name is exported it will clash
> with the same name if it is exported from another package, in
> particular, if that other package does not use NAMESPACE.
> 
> Is there a way to "export" a name so that the current package
> user can see it, but other packages cannot see it? My working
> assumption is that this is not possible, so I use a prefix like
> the package name to keep function names "local."

I don't think so.  Packages without namespaces start their search for 
names in the global environment, i.e. they see what a user sees.  This 
makes them very fragile, and there's not much you can do about that, 
other than encouraging the author to bite the bullet and install a 
namespace.

Duncan Murdoch




[Rd] NAMESPACE
Duncan Murdoch