Re: [R] contrib.url binary paths inconsistent

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Tue 06 Jul 2004 - 07:35:12 EST

Paul Roebuck wrote:

> Binary distribution [Windows]
> -----------------------------
>

>>contrib.url(getOption("CRAN"))

>
> [1] "http://cran.r-project.org/bin/windows/contrib/1.9"

Correct.

> Binary distribution [Mac OS X]
> -----------------------------
>

>>contrib.url(getOption("CRAN"), type = "mac.binary")

>
> [1] "http://cran.r-project.org/bin/macosx/1.9"

Correct. (In particular, there *must not* be .../contrib/... in the Mac version!)

Uwe Ligges

>
>
> 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



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 07:50:05 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:43 EST