[Bioc-devel] Duplicated method names in purrr and GenomicRanges
A@B@O'C@||@gh@n @end|ng |rom @m@@ed@@c@uk
Thu Sep 12 11:54:01 CEST 2019
First option: import either purrr::reduce or GenomicRanges::reduce, and
call the other with [pkg]::reduce.
Second option: remove the import for both of these. Use purrr::reduce
and GenomicRanges::reduce to call both functions.
I think the second option leads to clearer code and would be my definite
On 12/09/2019 10:07, bioinf using posteo.de wrote:
> Dear all,
> I am developing a Bioconductor package and have a problem with two
> methods which have the same name. I am using the reduce() function
> from the R packages GenomicRanges and purrr. All methods from other
> packages are imported with @importFrom in all of my functions.
> During devtools::document() I get the following Warning:
> replacing previous import ‘GenomicRanges::reduce’ by ‘purrr::reduce’
> when loading ‘testPackage’
> Here are my NAMESPACE entries:
> # Generated by roxygen2: do not edit by hand
> I am not using both reduce functions in the same function. To use the
> GenomicRanges reduce function, I have to call this function like this:
> I understand the warning and why I have to call the reduce function
> like this. Is there a solution for this problem? Compiling a R package
> with warnings and calling functions like this is not the best way I
> I am using R version 3.6.1 (2019-07-05)
> Thanks for help!
> Bioc-devel using r-project.org mailing list
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
More information about the Bioc-devel