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

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Thu 09 Feb 2006 - 16:23:36 GMT

On 8 Feb 2006, ripley@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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Feb 10 05:01:00 2006

This archive was generated by hypermail 2.1.8 : Fri 10 Feb 2006 - 02:15:50 GMT