From sfalcon at fhcrc.org  Wed Feb  8 18:07:25 2006
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Wed, 08 Feb 2006 09:07:25 -0800
Subject: [Rd] How to change names when importing with a NAMESPACE (was:
	NAMESPACE Q: does import as exist?)
In-Reply-To: <m2lkwldgl8.fsf@ziti.local> (Seth Falcon's message of "Wed,
	08 Feb 2006 07:18:27 -0800")
References: <D79013E40FEF254AAF0D72DFC94F274816B00B@extas4-hba.tas.csiro.au>
	<m2mzh2edjq.fsf@ziti.local> <43E9DFBC.4090704@stats.uwo.ca>
	<m2lkwldgl8.fsf@ziti.local>
Message-ID: <m23bitdbjm.fsf_-_@ziti.local>

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



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