Best practice for package creation when importing packages with functions of same name

124 Views Asked by At

I am creating a package called rmetadata here. The purpose of the package is to make requests to the OAI-PMH services of many data sources on scholarly publications/metadata. I wrote other packages (rpmc, rdatacite, etc.) that have functions named the same thing to be consistent as they do the same thing in each package, but for different data sources.

On installing rmetadata

install_github('rmetadata', 'ropensci')
library(rmetadata)

I get many warnings like

Warning: replacing previous import 'identify' when loading 'rdryad'
Warning: replacing previous import 'listidentifiers' when loading 'rdryad'
Warning: replacing previous import 'listmetadataformats' when loading 'rdryad'

What should I do? Should I rename the functions within each of the packages that rmetadata calls? e.g., identify becomes dryad_identify in rdryad, and identify becomes datacite_identify in rdatacite.

Or something else?

0

There are 0 best solutions below