Re: [Rd] Depends/Imports/Suggest/Enhence

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Tue, 06 Nov 2012 18:49:00 +0100

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
>>
>
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 06 Nov 2012 - 17:55:04 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 06 Nov 2012 - 20:30:50 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive