[Rd] How to change names when importing with a NAMESPACE (was: NAMESPACE Q: does import as exist?)
Seth Falcon
sfalcon at fhcrc.org
Wed Feb 8 18:07:25 CET 2006
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?
Best,
+ seth
More information about the R-devel
mailing list