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

2006-02-09 Thread Seth Falcon
On 8 Feb 2006, [EMAIL PROTECTED] 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 ren

Re: [Rd] How to change names when importing with a NAMESPACE (was: NAMESPACE Q: does import as exist?)

2006-02-08 Thread Prof Brian Ripley
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 un

[Rd] How to change names when importing with a NAMESPACE (was: NAMESPACE Q: does import as exist?)

2006-02-08 Thread Seth Falcon
Well, it seems that the following does what I want. In the NAMESPACE file, one can do: importFrom("pkgA", foo=bar) Which will allow you to use the symbol 'foo' to refer to pkgA::bar. This is exactly what I wanted. Despite the lack of documentation, this seems an intentional feature. Is there