List of package names with versions
1
0
Entering edit mode
@nathanwatsonhaigh-9830
Last seen 8.1 years ago

I'd like to get an up-to-date list of all the bioconductor packages together with their version number for a particular BioC version.

I know all_group() will return the list of package names, but I also need the versions. Where can I get these from?

Cheers,

Nathan

packages • 2.2k views
ADD COMMENT
0
Entering edit mode
@sushant-pawar-9287
Last seen 7.2 years ago
Nashik

you can try this

packinfo <- installed.packages(fields = c("Package", "Version"))
packinfo[,c("Package", "Version")]

 

ADD COMMENT
0
Entering edit mode

Is there a solution which doesn't first require installing everything? Will this only return BioC packages or also those installed via CRAN?

ADD REPLY
2
Entering edit mode

See https://bioconductor.org/packages/3.3/bioc/src/contrib/PACKAGES . Substitute your bioconductor version of interest for 3.3.

You can read this within R with the read.dcf() function. Of course, for current release and devel versions, package versions can change over time.

ADD REPLY
0
Entering edit mode

Thanks for this information. Please consider moving it from a comment to an answer.

ADD REPLY
1
Entering edit mode

Specify the appropriate 'repos' argument to available.packages(). The appropriate url is from BiocInstaller::biocinstallRepos(), for instance

> biocVersion()
[1] '3.2'
> biocinstallRepos()
                                               BioCsoft 
           "https://bioconductor.org/packages/3.2/bioc" 
                                                BioCann 
"https://bioconductor.org/packages/3.2/data/annotation" 
                                                BioCexp 
"https://bioconductor.org/packages/3.2/data/experiment" 
                                              BioCextra 
          "https://bioconductor.org/packages/3.2/extra" 
                                                   CRAN 
                             "https://cran.rstudio.com" 
> nrow(available.packages(contriburl=contrib.url(biocinstallRepos()[1:4])))
[1] 2264
> nrow(available.packages(contriburl=contrib.url(biocinstallRepos())))
[1] 10259

 

ADD REPLY
0
Entering edit mode

Thanks for this information. Please consider moving it from a comment to an answer.

ADD REPLY

Login before adding your answer.

Traffic: 604 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