From h.wickham at gmail.com  Wed Dec 19 03:42:42 2007
From: h.wickham at gmail.com (hadley wickham)
Date: Tue, 18 Dec 2007 20:42:42 -0600
Subject: [Rd] available.packages() not accurate?
In-Reply-To: <eb555e660712181800y2765a6f5k487cd89044b0340f@mail.gmail.com>
References: <f8e6ff050712181703s4827b126pff8d93958d7b9706@mail.gmail.com>
	<eb555e660712181718k29288293g2dc8043f05a2eabf@mail.gmail.com>
	<f8e6ff050712181731h5998da15h4a5593be74af129d@mail.gmail.com>
	<eb555e660712181800y2765a6f5k487cd89044b0340f@mail.gmail.com>
Message-ID: <f8e6ff050712181842g3c261350w452149526efefcd8@mail.gmail.com>

> > pkgs <- as.data.frame(available.packages(contrib.url("http://cran.r-project.org")))
> > pkgs[c("sn", "GOSim", "GammaTest"), c("Package", "Version")]
>       Package Version
> sn         sn   0.4-4
> GOSim   GOSim   1.1.2
> NA       <NA>    <NA>
>
> which match CRAN (which doesn't have GammaTest). So not sure what's going on.

I just figured it out:

> contrib.url(contrib.url("http://cran.r-project.org"))
[1] "http://cran.r-project.org/bin/macosx/universal/contrib/2.6/bin/macosx/universal/contrib/2.6"
> contrib.url("http://cran.r-project.org", type="source")
[1] "http://cran.r-project.org/src/contrib"

Oops - thanks for the help.

Hadley


-- 
http://had.co.nz/



[Rd] available.packages() not accurate?
hadley wickham