piLaboratory / GillesCom

Gillespie Simulation of Ecological Communities Dynamics
2 stars 0 forks source link

Import order? #4

Closed andrechalom closed 8 years ago

andrechalom commented 8 years ago

I'm getting

  Warning: replacing previous import by ‘stats::AIC’ when loading ‘GillesCom’

When installing the package. This is caused by the order in which the required packages are being loaded in the NAMESPACE:

  1 # Generated by roxygen2 (4.1.1): do not edit by hand
  2 
  3 export(Init_Community)
  4 export(Interaction)
  5 export(abundance)
  6 export(bdm)
  7 export(ls.m)
  8 export(ones)
  9 export(time)
 10 import(graphics)
 11 import(sads)
 12 import(stats)
 13 useDynLib(GillesCom)

Is there any way to force stats to be loaded before sads? Or can we drop one of the imports?

andrechalom commented 8 years ago

Maybe related? http://r.789695.n4.nabble.com/quot-False-quot-warning-on-quot-replacing-previous-import-quot-when-re-exporting-identical-object-td4674952.html

andrechalom commented 8 years ago

Also: how can we integrate the Rcpp functions easily in the package NAMESPACE?

andrechalom commented 8 years ago

NAMESPACE generation is, at least temporarily, manual. There are too many issues in the attempted auto-generation at the moment.