From ligges at statistik.tu-dortmund.de  Tue Nov  6 18:49:00 2012
From: ligges at statistik.tu-dortmund.de (Uwe Ligges)
Date: Tue, 06 Nov 2012 18:49:00 +0100
Subject: [Rd] Depends/Imports/Suggest/Enhence
In-Reply-To: <5099411D.6020608@u-paris10.fr>
References: <5099387D.1060805@u-paris10.fr>
	<74B4544F-4D67-49AC-A293-3AAE59CFFF25@r-project.org>
	<5099411D.6020608@u-paris10.fr>
Message-ID: <50994D8C.6020903@statistik.tu-dortmund.de>



On 06.11.2012 17:55, Christophe Genolini wrote:
>   Thanks a lot for your answer.
>
>> (it is really "Suggests" and "Enhances" - the above are typos I
>> presume and thus won't be recognized)
> Yes, it was typo. Sorry
>> No, you only need foo1 and foo2. The other two are optional.
> I get:
>
> * checking package dependencies ... ERROR
> Package suggested but not available: 'foo3'
>
>> "Imports" means that symbols are imported form the namespace, so they
>> are mandatory for the package to operate. "Suggests" means that
>> symbols from the package are not required, but they are used in
>> examples or vignettes, so the listed package(s) will be needed for a
>> full check. They are not needed for the operation of the package, though.
> That's very clear, thanks a lot.
> So I will use
>
>
>   - 'Depends:foo1' if there is a function in foo1 that my package use often

No, better make use of Namespace imports all the time and only use 
"Depends" if you really need the other package to be installed. This is 
rarely needed.

Uwe Ligges





>   - 'Imports:foo2' if there is a function in foo2 that my package might
> use rarely
>   - 'Suggest:foo3' if an example .Rd in foo0 needs a function in foo3
>
> Right?
>
>> Cheers, Simon
>>> Christophe
>>>
>>> --
>>> Christophe Genolini
>>> Ma?tre de conf?rences en bio-statistique
>>> Vice pr?sident Communication interne et animation du campus
>>> Universit? Paris Ouest Nanterre La D?fense
>>>
>>>
>>>     [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
>



[Rd] Depends/Imports/Suggest/Enhence
Uwe Ligges