[Rd] How to change names when importing with a NAMESPACE

Seth Falcon sfalcon at fhcrc.org
Thu Feb 9 17:23:36 CET 2006


On  8 Feb 2006, ripley at stats.ox.ac.uk wrote:
> This is indeed described in
>
> http://www.stat.uiowa.edu/~luke/R/namespaces/morenames.html
>
> linked from developer.r-project.org.
>
> with the comment
>
> The purpose of baz is to import some of the exports of foo and bar
> and re-export them, using renaming in one case: bar's export g is
> imported under the internal name hh, and the internal variable hh is
> exported under the name gg. [Renaming seems like a useful option,
> but it may turn out to create too many complications and need to be
> dropped.]
>
> It's been there since 1.7.0 and not yet been dropped.

I'd like to interpret that as an endorsement that this feature is
likely to stay around.  Luke's comments indicates that at least in his
opinion the provisional nature is just as much provisional as now.

> It would be nice to have more end-user documentation on namespaces,
> and I have suggested it in the past.  A project for you, perhaps?

:-)

I will very likely write something up, at least as a summary of
lessons learned from this email exchange.  

+ seth



More information about the R-devel mailing list