[R] contrib.url binary paths inconsistent

Paul Roebuck roebuck at odin.mdacc.tmc.edu
Mon Jul 5 22:00:53 CEST 2004


Binary distribution [Windows]
-----------------------------
> contrib.url(getOption("CRAN"))
[1] "http://cran.r-project.org/bin/windows/contrib/1.9"

Binary distribution [Mac OS X]
-----------------------------
> contrib.url(getOption("CRAN"), type = "mac.binary")
[1] "http://cran.r-project.org/bin/macosx/1.9"



Possible update for Mac OS X version:

contrib.url <-
function(CRAN, type = c("source", "mac.binary")) {
    type <- match.arg(type)
    ver <- paste(R.version$major,
                 substring(R.version$minor, 1, 1),
                 sep = ".")
    switch(type,
           source =     file.path(CRAN, "src", "contrib"),
           mac.binary = file.path(CRAN, "bin", "macosx", "contrib", ver))
}

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)




More information about the R-help mailing list