rOpenSpain / Siane

R package to represent statistical data on official Spanish maps at several administrative levels
Other
10 stars 2 forks source link

Code problems #3

Open Enchufa2 opened 6 years ago

Enchufa2 commented 6 years ago

From R CMD check --as-cran:

* checking package dependencies ... NOTE 
Depends: includes the non-default packages: 
  ‘RColorBrewer’ ‘classInt’ ‘maptools’ ‘plyr’ ‘raster’ ‘rgdal’ ‘sp’  
Adding so many packages to the search path is excessive and importing 
selectively is preferable.
* checking dependencies in R code ... NOTE
Packages in Depends field not imported from:
  ‘RColorBrewer’ ‘classInt’ ‘maptools’ ‘plyr’ ‘raster’ ‘sp’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.

These packages should be Imports, not Depends.

* checking R code for possible problems ... NOTE
brks_color: no visible global function definition for ‘classIntervals’
get_dir : <anonymous>: no visible global function definition for ‘tail’
siane_map: no visible global function definition for ‘bind’
siane_map: no visible global function definition for ‘shift’
siane_map: no visible global function definition for ‘as’
siane_map: no visible global function definition for ‘proj4string<-’
siane_merge: no visible global function definition for ‘join’
stop_advices: no visible binding for global variable ‘value’
Undefined global functions or variables:
  as bind classIntervals join proj4string<- shift tail value
Consider adding
  importFrom("methods", "as")
  importFrom("utils", "tail")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').