[Rd] Default repositories in WIndows
Rich Calaway
richcala at microsoft.com
Sat Sep 9 01:05:05 CEST 2017
In the NEWS for R 3.1.0, there is this item:
The CRANextra repository is no longer a default repository on Windows: all the binary versions of packages from CRAN are now on CRAN, although CRANextra contains packages from Omegahat and elsewhere used by CRAN packages.
However, the .onLoad function in package utils still appends CRANextra to the Windows repos list and sets the repos option, so that CRANextra does indeed still appear as a default repository on Windows. This patch should make the reality agree with the NEWS...
Index: zzz.R
===================================================================
--- zzz.R (revision 73224)
+++ zzz.R (working copy)
@@ -39,8 +39,7 @@
if(.Platform$OS.type == "windows") {
list(unzip = "internal",
editor = if(length(grep("Rgui", commandArgs(), TRUE))) "internal" else "notepad",
- repos = c(CRAN = "@CRAN@",
- CRANextra = "http://www.stats.ox.ac.uk/pub/RWin")
+ repos = c(CRAN = "@CRAN@")
)
} else
list(unzip = Sys.getenv("R_UNZIPCMD"),
(This patch was against R-patched; the same change needs to be made to R-devel as well...)
Cheers,
Rich Calaway
Microsoft R Product Team
24/1341
+1 (425) 4219919 X19919
More information about the R-devel
mailing list