[R] Depends and Imports in DESCRIPTION file

Marc Girondot marc_grt at yahoo.fr
Wed Oct 23 05:03:57 CEST 2013


Dear list members:

I try to check my updated package to include a new version in CRAN 
(phenology) but a new error is indicated and I don't find the logic.
First my system:
* using R version 3.0.2 Patched (2013-09-27 r64011)
* using platform: x86_64-apple-darwin10.8.0 (64-bit)

Here is the message:

* checking dependencies in R code ... NOTE
Packages in Depends field not imported from:
‘fields’ ‘zoo’
These packages needs to imported from for the case when
this namespace is loaded but not attached.
See the information on DESCRIPTION files in the chapter ‘Creating R
packages’ of the ‘Writing R Extensions’ manual.

It is based on this line in DESCRIPTION file:
Depends: fields, zoo, coda, R (>= 2.14.0)

I use indeed functions from fields and zoo packages.

If I create a new line:
Imports: fields, zoo
and remove these two packages from depends, I have still a problem in 
Imports and errors because functions from fields and zoo are not available.
* checking dependencies in R code ... NOTE
Namespaces in Imports field not imported from:
‘fields’ ‘zoo’
All declared Imports should be used.
See the information on DESCRIPTION files in the chapter ‘Creating R
packages’ of the ‘Writing R Extensions’ manual.
* checking R code for possible problems ... NOTE
.read_phenology: no visible global function definition for ‘na.locf’
plot.phenologymap: no visible global function definition for
‘image.plot’


If I add the packages fields, zoo packages in both Depends and Imports, 
I have also error because packages fields, zoo are indicated twice and I 
have the same errors as previously indicated.
* checking DESCRIPTION meta-information ... NOTE
Packages listed in more than one of Depends, Imports, Suggests, Enhances:
‘fields’ ‘zoo’
A package should be listed in only one of these fields.

Of course I read ‘Creating R packages’ of the ‘Writing R Extensions’ 
manual, but I can't find solution to this problem.

Thanks a lot,

Marc Girondot

-- 
__________________________________________________________
Marc Girondot, Pr

Laboratoire Ecologie, Systématique et Evolution
Equipe de Conservation des Populations et des Communautés
CNRS, AgroParisTech et Université Paris-Sud 11 , UMR 8079
Bâtiment 362
91405 Orsay Cedex, France

Tel:  33 1 (0)1.69.15.72.30   Fax: 33 1 (0)1.69.15.73.53
e-mail: marc.girondot at u-psud.fr
Web: http://www.ese.u-psud.fr/epc/conservation/Marc.html
Skype: girondot



More information about the R-help mailing list