[Rd] available.packages() not accurate?
hadley wickham
h.wickham at gmail.com
Wed Dec 19 03:42:42 CET 2007
> > 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/
More information about the R-devel
mailing list