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
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