The editor has been updated to markdown! Please see more info at: Tutorial: Updated Support Site Editor

Question: CMD check warning using Bioconductor as a source for the dependencies of an R package
gravatar for dong
11 days ago by
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

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

ADD COMMENTlink modified 11 days ago by Martin Morgan ♦♦ 22k • written 11 days ago by dong10

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

ADD REPLYlink written 11 days ago by Martin Morgan ♦♦ 22k

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

ADD REPLYlink written 11 days ago by dong10

You can find further details in

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 11 days ago • written 11 days ago by Mike Smith3.2k
Answer: CMD check warning using Bioconductor as a source for the dependencies of an R pa
gravatar for Martin Morgan
11 days ago by
Martin Morgan ♦♦ 22k
United States
Martin Morgan ♦♦ 22k 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()

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

> "BiocInstaller" %in% unlist(deps)

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)

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

ADD COMMENTlink written 11 days ago by Martin Morgan ♦♦ 22k
Please log in to add an answer.


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