From richcala at microsoft.com  Sat Sep  9 01:05:05 2017
From: richcala at microsoft.com (Rich Calaway)
Date: Fri, 8 Sep 2017 23:05:05 +0000
Subject: [Rd] Default repositories in WIndows
Message-ID: <CY4PR21MB0167C8A16F891D0D07FDF8CADE950@CY4PR21MB0167.namprd21.prod.outlook.com>

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



[Rd] Default repositories in WIndows
Rich Calaway