[R] contrib.url binary paths inconsistent

From: Paul Roebuck <roebuck_at_odin.mdacc.tmc.edu>
Date: Tue 06 Jul 2004 - 06:00:53 EST


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)

R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 06 06:06:36 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:39:47 EST