Hi, I have a package which imports the two functions ggdendro::segment and DNAcopy::segment. This leads to a warning message when checking the package: Warning: replacing previous import ?DNAcopy::segment? by ?ggdendro::segment? when loading ?AneuFinder? How can I avoid this warning and properly import the two functions to pass R CMD check? I use the two segment functions in different functions of my package. Aaron
[Bioc-devel] Conflicting Imports in Namespace
3 messages · Aaron Taudt, Martin Morgan, Nathan Sheffield
On 07/20/2016 03:12 AM, Aaron Taudt wrote:
Hi, I have a package which imports the two functions ggdendro::segment and DNAcopy::segment. This leads to a warning message when checking the package: Warning: replacing previous import ?DNAcopy::segment? by ?ggdendro::segment? when loading ?AneuFinder? How can I avoid this warning and properly import the two functions to pass R CMD check? I use the two segment functions in different functions of my package.
Import: both packages in the DESCRIPTION. Don't mention (explicitly or implicitly, e.g., by import()ing both packages) 'segment' twice in the NAMESPACE. Resolve symbols as you do above in the code. Martin
Aaron [[alternative HTML version deleted]]
_______________________________________________ Bioc-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel
This email message may contain legally privileged and/or...{{dropped:2}}
6 days later
You may also find this useful if you only need to use one of the two. To import every symbol from a package but for a few exceptions, pass the |except| argument to |import|. The directive import(foo, except=c(bar, baz)) https://cran.r-project.org/doc/manuals/R-exts.html#Specifying-imports-and-exports
On 07/20/2016 02:48 AM, Martin Morgan wrote:
On 07/20/2016 03:12 AM, Aaron Taudt wrote:
Hi, I have a package which imports the two functions ggdendro::segment and DNAcopy::segment. This leads to a warning message when checking the package: Warning: replacing previous import ?DNAcopy::segment? by ?ggdendro::segment? when loading ?AneuFinder? How can I avoid this warning and properly import the two functions to pass R CMD check? I use the two segment functions in different functions of my package.
Import: both packages in the DESCRIPTION. Don't mention (explicitly or implicitly, e.g., by import()ing both packages) 'segment' twice in the NAMESPACE. Resolve symbols as you do above in the code. Martin
Aaron
[[alternative HTML version deleted]]
_______________________________________________ Bioc-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel
This email message may contain legally privileged and/or...{{dropped:2}}
_______________________________________________ Bioc-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/bioc-devel