Question: CMD check warning using Bioconductor as a source for the dependencies of an R package
1
gravatar for dong
5 months ago by
dong10
dong10 wrote:

I am writing an R package and one of my dependencies is a bioconductor package xcms. It can pass the CMD check in my local PC, while when I submit my package to CRAN, there is one warning:

>Found the following significant warnings:
Warning: 'BiocInstaller' and 'biocLite()' are deprecated, use the 'BiocManager' CRAN

Here is part of my Description File:

> Depends:     
> R (>= 3.1.0).   
> biocViews:    
> Imports:    
> xcms.

The CRAN check result is here https://win-builder.r-project.org/incomingpretest/Miso0.2.020190210133229/Windows/00check.log

I don't know how to eliminate this warning, thanks a lot for your help.

ADD COMMENTlink modified 5 months ago by Martin Morgan ♦♦ 23k • written 5 months ago by dong10

provide more detail, e.g., the link to the CRAN check and to your package source.

ADD REPLYlink written 5 months ago by Martin Morgan ♦♦ 23k

@Martin Morgan, Thanks for your suggestion. The CRAN check has been added here.

ADD REPLYlink written 5 months ago by dong10
2

You can find further details in https://win-builder.r-project.org/incomingpretest/Miso0.2.020190210133229/Windows//00install.out

I wonder if this is because the Windows builder is stuck with an outdated version of a Bioconductor package that still references BiocInstaller. Perhaps there's a way to find more details of the packages installed?

If this is the case then I'm not sure there's much you can do other than wait for the relevant package to be updated.

ADD REPLYlink modified 5 months ago • written 5 months ago by Mike Smith3.8k
Answer: CMD check warning using Bioconductor as a source for the dependencies of an R pa
2
gravatar for Martin Morgan
5 months ago by
Martin Morgan ♦♦ 23k
United States
Martin Morgan ♦♦ 23k wrote:

One can discover dependencies by discovering the packages available for the platform in question

db <- available.packages(repos=BiocManager::repositories(), type = "win.binary")

and then finding reverse dependencies

deps <- tools::package_dependencies("xcms", db, recursive = TRUE)

For the 'devel' version of R, the repositories are

> BiocManager::repositories()
                                               BioCsoft
           "https://bioconductor.org/packages/3.9/bioc"
                                                BioCann
"https://bioconductor.org/packages/3.9/data/annotation"
                                                BioCexp
"https://bioconductor.org/packages/3.9/data/experiment"
                                          BioCworkflows
      "https://bioconductor.org/packages/3.9/workflows"
                                                   CRAN
                             "https://cran.rstudio.com"

where the 3.9 indicates Bioconductor 3.9. There are no dependencies on BiocInstaller

> "BiocInstaller" %in% unlist(deps)
[1] FALSE

so at least for xcms Mike Smiths' speculation (that stale packages are installed on win-builder) would be the most likely explanation. If there is no dependency on BiocInstaller in the other direct and indirect dependencies, this should be taken up with the win-builder team. Actually, since BiocInstaller is not available under R-devel

> "BiocInstaller" %in% rownames(db)
[1] FALSE

and since the WARNING comes when BiocInstaller is loaded, it follows that win-builder does not have a current installation.

ADD COMMENTlink written 5 months ago by Martin Morgan ♦♦ 23k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 117 users visited in the last hour