From simon.urbanek at r-project.org  Tue Nov  6 17:36:32 2012
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 6 Nov 2012 11:36:32 -0500
Subject: [Rd] Depends/Imports/Suggest/Enhence
In-Reply-To: <5099387D.1060805@u-paris10.fr>
References: <5099387D.1060805@u-paris10.fr>
Message-ID: <74B4544F-4D67-49AC-A293-3AAE59CFFF25@r-project.org>


On Nov 6, 2012, at 11:19 AM, Christophe Genolini wrote:

> Hi the list
> 
> In the DESCRIPTION file of my package foo0, I have:
> 
> Depends: foo1
> Imports: foo2
> Suggest: foo3
> Enhence: foo4
> 

(it is really "Suggests" and "Enhances" - the above are typos I presume and thus won't be recognized)


> If I understand correctly, to install foo0 on my computer, I need to already have foo1, foo2, foo3. 
> foo4 is not necessary.
> 

No, you only need foo1 and foo2. The other two are optional.


> I my R sesssion, when I will write: library(foo0), then the package foo1 will be attach. foo2, foo3 
> and foo4 will not. Is that correct?
> 

Yes


> But what is the difference between Import and Suggest?
> 

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

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