glowabio / hydrographr

https://glowabio.github.io/hydrographr/
GNU General Public License v3.0
13 stars 1 forks source link

Minor: Prevent warning Warning: replacing previous import ‘dplyr::as_data_frame’ by ‘igraph::as_data_frame’ when loading ‘hydrographr’ #60

Open merretbuurman opened 2 months ago

merretbuurman commented 2 months ago

When we install the package, we get this warning:

Warning: replacing previous import ‘dplyr::as_data_frame’ by ‘igraph::as_data_frame’ when loading ‘hydrographr’

AFAIK, this is because we import dplyr entirely (in NAMESPACE: import(dplyr)), instead of importing individual functions from it, such as importFrom(igraph,as_data_frame).

I think we should remove import(dplyr) and import(magrittr) and check which functions are needed, and import them individually. To get rid of that warning, and have more overview about dependencies.