How to find all available packages on BioConductor
2
0
Entering edit mode
@mickjordan-12462
Last seen 7.2 years ago

Is there a way to find all the available packages on BioConductor in an R program, as in utils::available.packages() to get all the CRAN packages? I searched for this and read the BiocInstaller docs but didn't see how to do it.

bioconductor • 2.1k views
ADD COMMENT
3
Entering edit mode
@james-w-macdonald-5106
Last seen 9 hours ago
United States
library(BiocInstaller)

z <- available.packages(repos = biocinstallRepos()[1])
ADD COMMENT
0
Entering edit mode

EDIT:

z <- available.packages(repo = biocinstallRepos()[1])
ADD REPLY
0
Entering edit mode
@mickjordan-12462
Last seen 7.2 years ago

Thanks! FYI, this is for automated package testing for the FastR project: https://github.com/graalvm/fastr

ADD COMMENT
0
Entering edit mode

Package testing likely requires experiment and annotation packages, which is likely BiocInstaller::biocinstallRepos()[1:3], but maybe decide based on 

> BiocInstaller:::biocinstallRepos()
                                               BioCsoft 
           "https://bioconductor.org/packages/3.5/bioc" 
                                                BioCann 
"https://bioconductor.org/packages/3.5/data/annotation" 
                                                BioCexp 
"https://bioconductor.org/packages/3.5/data/experiment" 
                                              BioCextra 
          "https://bioconductor.org/packages/3.5/extra" 
                                                   CRAN 
                             "https://cran.rstudio.com" 

It will likely be more efficient to use mirror via rsync to maintain a local repository, rather than installing built binaries over http.

 

 

ADD REPLY
0
Entering edit mode

Yes, I wondered about those other entries. I go back and forth on maintaining a local copy (of CRAN) which is what we test now, a few hundred packages a day on a rolling basis. We have to build everything from source anyway (at least those packages with native code) as FastR is not binary-compatible with the C code.

ADD REPLY

Login before adding your answer.

Traffic: 952 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6