Re: [Rd] package installation order

From: Seth Falcon <seth_at_userprimary.net>
Date: Wed, 14 Nov 2007 20:38:18 -0800

Dirk Eddelbuettel <edd_at_debian.org> writes:
> When trying to package the by-now-gargantuan Rmetrics for Debian (which is
> still ongoing), I looked around for some Depends builders. Turns out that
> BioC has this. E.g. the following worked for:
>
> ## > install.packages("Biobase", repo="http://www.bioconductor.org")
> ## > repos <- Biobase:::biocReposList()
> ## > install.packages("pkgDepTools", repos=repos["bioc"])
> ## > library(pkgDepTools)
> ## Loading required package: graph
> ## Loading required package: RBGL
> ## > CRANdeps <- makeDepGraph(repos["cran"], type="source")
> ## > getInstallOrder("Rmetrics", CRANdeps, needed.only=FALSE)
>
> worked for me. I meant to add some code for Graphviz visualization (or look
> for it, Seth et al probably already wrote it) but what you get from
> getInstallOrder() should suit your needs here.

makeDepGraph returns a graphNEL instance and Rgraphviz knows how to plot those. The entire graph will likely not produce a particularly compelling visualization. But you can subset the graph according to a particular package's dependencies, etc.

+ seth

-- 
Seth Falcon | seth@userprimary.net | blog: http://userprimary.net/user/

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 15 Nov 2007 - 04:40:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 19 Nov 2007 - 16:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.