Re: [Bioc-devel] Hsapiens in bioconductor

2017-09-14 Thread Tomasz Stokowy
Dear Herve, Your solution worked out, no 'R CMD check' warning. -- Tomasz On Thu, 14 Sep 2017 18:09:44 +0200, wrote: Hi Tomasz, The name of the BSgenome object defined in a BSgenome data package is the name of the package itself. Hsapiens is just an convenient "alias" for the long name. S

Re: [Bioc-devel] Hsapiens in bioconductor

2017-09-14 Thread Hervé Pagès
Hi Tomasz, The name of the BSgenome object defined in a BSgenome data package is the name of the package itself. Hsapiens is just an convenient "alias" for the long name. So you could do: importFrom(BSgenome.Hsapiens.UCSC.hg19, BSgenome.Hsapiens.UCSC.hg19) importFrom(BSgenome.Hsapiens.UCSC.hg38,

Re: [Bioc-devel] Hsapiens in bioconductor

2017-09-14 Thread Vincent Carey
I think the point is that CMD check will issue a warning for the symbol collision implied by the import statements. I don't know that there is a way to do this. I think the namespace should be made to avoid conflicts and if a given name can have distinct values you will have to use code to sort t

Re: [Bioc-devel] Hsapiens in bioconductor

2017-09-14 Thread Piotr Balwierz
Hello Tomaszu, On 9/14/17 2:14 PM, Tomasz Stokowy wrote: Could you suggest how to avoid this warning? I would like to use both hg19 and hg38 references in my package. super easy: library(BSgenome.Hsapiens.UCSC.hg19) suppressMessages(library(BSgenome.Hsapiens.UCSC.hg38)) _

[Bioc-devel] Hsapiens in bioconductor

2017-09-14 Thread Tomasz Stokowy
Dear bioc-devel, I would like to import Hsapiens objects from both BSgenome.Hsapiens.UCSC.hg19 and BSgenome.Hsapiens.UCSC.hg38 this is currently handled in the namespace of my package by import(BSgenome.Hsapiens.UCSC.hg19) import(BSgenome.Hsapiens.UCSC.hg38) I get warning (because I assign two