Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-13 Thread Henrik Bengtsson
Just an FYI, *if* all you're doing is rbind():ing those data frames, then you're better of doing: df <- do.call(rbind, dfs) than df <- Reduce(rbind, dfs) because the former is faster and more memory efficient: > dfs <- rep(list(iris), times=100) > bench::mark(df <- Reduce(rbind, dfs))[,1:7

Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-13 Thread bioinf
Thank you for all of your answers. Michaels solution works fine for me. I had to merge a list of data.frames. Used the solution in this thread here: https://stackoverflow.com/questions/8091303/simultaneously-merge-multiple-data-frames-in-a-list Am 12.09.19 um 13:05 schrieb Michael Lawrence via

Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-12 Thread Cook, Malcolm
ve recently found this quite useful, but welcome arguments for/against this approach. Cheers, ~Malcolm > -Original Message- > From: Bioc-devel On Behalf Of > bio...@posteo.de > Sent: Thursday, September 12, 2019 4:07 AM > To: bioc-devel > Subject: [Bioc-devel] Dupl

Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-12 Thread Richard Virgen-Slane
You don’t have to list it in your Namespace so long as it’s in your description file. This should fix the problem. On Thu, Sep 12, 2019 at 2:07 AM 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()

Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-12 Thread Liu, Qian
ursday, September 12, 2019 7:05 AM To: O'CALLAGHAN Alan Cc: bioc-devel@r-project.org Subject: Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges Third option: use Reduce() from base instead of purr::reduce(). On Thu, Sep 12, 2019 at 2:54 AM O'CALLAGHAN Alan wrote: &g

Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-12 Thread Michael Lawrence via Bioc-devel
Third option: use Reduce() from base instead of purr::reduce(). On Thu, Sep 12, 2019 at 2:54 AM O'CALLAGHAN Alan wrote: > > Hi, > > Two options. > > First option: import either purrr::reduce or GenomicRanges::reduce, and > call the other with [pkg]::reduce. > > Second option: remove the import fo

Re: [Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-12 Thread O'CALLAGHAN Alan
Hi, Two options. 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

[Bioc-devel] Duplicated method names in purrr and GenomicRanges

2019-09-12 Thread bioinf
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: