From csardi.gabor at gmail.com  Sat Dec  7 18:19:31 2013
From: csardi.gabor at gmail.com (=?ISO-8859-1?B?R+Fib3IgQ3PhcmRp?=)
Date: Sat, 7 Dec 2013 12:19:31 -0500
Subject: [Rd] Depending/Importing data only packages
In-Reply-To: <52A35220.7010307@gmail.com>
References: <CABdHhvEXM_Bbr7GXP0nRiURCGfVzcFXOi--9sLUiBe3YrdP-qQ@mail.gmail.com>
	<52A35220.7010307@gmail.com>
Message-ID: <CABtg=K=pVVZzRxj5JtLuP92kL1Fiho3gxC85HJouV6ZHjeikDw@mail.gmail.com>

I don't know about this particular case, but in general it makes sense
to rely on a data package. E.g. I am creating a package that does
Bayesian inference for a particular problem, potentially relying on
prior knowledge. I think it makes sense to put the data that is used
to calculate the prior into another package, because it will be larger
than the code, and it does not change that often.

Gabor

On Sat, Dec 7, 2013 at 11:51 AM, Paul Gilbert <pgilbert902 at gmail.com> wrote:
> Would "Suggests" not work in this situation? I don't understand why you
> would need Depends. In what sense do you rely on the data only package?
>
> Paul
>
> On 13-12-06 04:20 PM, Hadley Wickham wrote:
>>
>> Hi all,
>>
>> What should you do when you rely on a data only package. If you just
>> "Depend" on it, you get the following from R CMD check:
>>
>> Package in Depends field not imported from: 'hflights'
>>    These packages needs to imported from for the case when
>>    this namespace is loaded but not attached.
>>
>> But there's nothing in the namespace to import, so adding it to
>> imports doesn't seem like the right answer.  Is that just a spurious
>> note?
>>
>> Hadley
>>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Depending/Importing data only packages
=?ISO-8859-1?B?R+Fib3IgQ3PhcmRp?=