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

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Wed 08 Feb 2006 - 17:07:25 GMT

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 a reason not to document it and allow it as part of the NAMESPACE feature set?


+ seth

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

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:40 GMT