automatically checking the version of a BioC package
2
0
Entering edit mode
burak kutlu ▴ 200
@burak-kutlu-1561
Last seen 7.0 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20060723/ 8934fd38/attachment.pl
• 596 views
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 10.2 years ago
Hi Burak, burak kutlu <burak_kutlu at="" yahoo.com=""> writes: > As part of our data pipeline for our database www.t1dbase.org), our > code needs to check the version of the most current packages, > compare them against the already installed ones and attempt to > download any package that is not the most current. > How can we do this, without directly using 'update.packages' which > downloads the packages regardless of their version? update.packages respects the package versions and should, basically do what you want. I'm not sure how well it will work non-interactively. Here is how I would try running it: library("Biobase") update.packages(repos=biocReposList()) As you may know, Bioconductor hosts three main package repositories for Software, Annotation Data, and Experiment Data. In turn, many of these packages depend on packages hosted on CRAN. I assume you will want to check for updates in all repositories. If update.packages doesn't work for you then have a look at available.packages installed.packages Each returns a matrix and one of the columns is version number. + seth
ADD COMMENT
0
Entering edit mode
@gorjanc-gregor-1198
Last seen 10.2 years ago
Hi, burak kutlu <burak_kutlu at="" ...=""> writes: > > Hi, > > As part of our data pipeline for our database www.t1dbase.org), our code needs to check the version of the > most current packages, compare them against the already installed ones and attempt to download any > package that is not the most current. > > How can we do this, without directly using 'update.packages' which downloads the packages regardless of > their version? What do you mean by the most current version? As far as I know 'update.packages' was written exactly for this i.e. to update packages on your machine to the most current version in the repository. Additionally, you are asked which candidates for updates should be updated. Gregor
ADD COMMENT

Login before adding your answer.

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