From murdoch at stats.uwo.ca  Wed Feb  8 03:10:52 2006
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Tue, 07 Feb 2006 21:10:52 -0500
Subject: [Rd] NAMESPACE Q: does import as exist?
In-Reply-To: <m2slquei3o.fsf@ziti.local>
References: <m2slquei3o.fsf@ziti.local>
Message-ID: <43E9532C.5010505@stats.uwo.ca>

On 2/7/2006 8:48 PM, Seth Falcon wrote:
> Is there a way to rename a function when importing it?  I want to say,
> "import yourFunc from Foo as myFunc" in the NAMESPACE file.  
> 
> Does this exist and I've missed it?  If it doesn't exist, would others
> think it useful (and possible)?

I don't know if that exists, but importing it and then copying it should 
work.  That is, in your namespace import foo, and export bar, and in one 
of your R source files have

bar <- foo



[Rd] NAMESPACE Q: does import as exist?
Duncan Murdoch