From murdoch.duncan at gmail.com  Mon Oct 21 00:47:44 2013
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Sun, 20 Oct 2013 18:47:44 -0400
Subject: [Rd] Question about selective importing of package functions...
In-Reply-To: <CABG0rfvYDUJc_-4RyiB=JUafEJD4F1mTYHy18OoPz+5AVY=Mrg@mail.gmail.com>
References: <CABG0rfuqopYT3mDwZ9JXsketm5bw_wcAgzHGy4MrZ1F2HmUfUA@mail.gmail.com>	<526441E8.4000408@gmail.com>	<CAP01uR=J+vSrS-XAciXq_X4n985zJsysnimT+z5rJ4KvSMjViA@mail.gmail.com>	<CABG0rfvboosWxEVOJetx9gXtGvVdVjhGMz6g4=dGuZPVcJtwZg@mail.gmail.com>	<21092.23167.178513.715084@max.nulle.part>
	<CABG0rfvYDUJc_-4RyiB=JUafEJD4F1mTYHy18OoPz+5AVY=Mrg@mail.gmail.com>
Message-ID: <52645D90.7020201@gmail.com>

On 13-10-20 6:41 PM, Jonathan Greenberg wrote:
> To be clear, if I used Depends: somepackage before, and switched over to
> using Imports: somepackage, I'll need to mod my code that used to have a
> call to, say, somefunction to now have somepackage::somefunction, correct?

No.  You need to modify both the DESCRIPTION file as you say above, and 
the NAMESPACE file to say what to import.  Once you do that, those 
functions will appear to your own package functions without any prefix 
needed.

Duncan Murdoch

>
> --j
>
>
> On Sun, Oct 20, 2013 at 5:34 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
>>
>> On 20 October 2013 at 16:20, Jonathan Greenberg wrote:
>> | One more follow-up -- will I now need to include a library() statement in
>> | each function?
>>
>> No.
>>
>> NAMESPACE entry, coupled with Imports: in DESCRIPTION.
>>
>> Dirk
>>
>> --
>> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
>>
>
>
>



[Rd] Question about selective importing of package functions...
Duncan Murdoch