On Sat, 22 Dec 2001, Ronaldo Reis Jr. wrote:
> Hi all,
>
> I use a function update.packages to update all packages in my R
instalation.
>
> But I need compare one by one packages to discovery new packages.
>
> My question is: Exist in R any function that compare all installed packages
> in my R and all packages available in CRAN and return a list of the new
> packages (ie packages that I dont have im my installation) and automatic
> download and install this packages?
packageStatus()
For example:
> summary(packageStatus())
...
Available packages:
-------------------
(each package appears only once)
*** Repository http://cran.r-project.org/src/contrib
$installed
[1] "AnalyzeFMRI" "CoCoAn" "Devore5"
"EMV"
...
$"not installed"
[1] "RMySQL" "ROracle" "RSQLite"
"RmSQL" "XML" "netCDF" "rpvm"
It's not totally automatic, not least because you will be unable to
install some packages automatically unless you have lots of addons in
(what the package authors thought were) standard places (e.g. all the
supported databases installed, lapack, libxml in a version that XML
actually works with, ...).
BTW, packageStatus is new in 1.4.0, and still under development so
sparsely documented.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._