Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import warnings when multiGSEA.shiny is loaded #8

Open
lianos opened this issue Apr 22, 2020 · 0 comments
Open

Fix import warnings when multiGSEA.shiny is loaded #8

lianos opened this issue Apr 22, 2020 · 0 comments

Comments

@lianos
Copy link
Owner

lianos commented Apr 22, 2020

Importing data.table and dplyr cause some "function override" warnings when this package is loaded, or imported from other packages, like so:

Warning messages:
1: replacing previous import ‘data.table::last’ by ‘dplyr::last’ when loading ‘multiGSEA.shiny’ 
2: replacing previous import ‘data.table::first’ by ‘dplyr::first’ when loading ‘multiGSEA.shiny’ 
3: replacing previous import ‘data.table::between’ by ‘dplyr::between’ when loading ‘multiGSEA.shiny’ 
4: replacing previous import ‘dplyr::combine’ by ‘multiGSEA::combine’ when loading ‘multiGSEA.shiny’ 

More judicially importing functions from one of the packages, or use the import/except mojo should do the trick.

import/except

The NAMESPACE file supports syntax like this:

import(PACKAGE, except=c(foo,bar))

And you can get roxygen to do that like so:

#' @rawNamespace import(PACKAGE, except = foo)

Who knew? ... this guy knew ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant