From dtenenba at fredhutch.org  Mon Jan 26 20:17:37 2015
From: dtenenba at fredhutch.org (Dan Tenenbaum)
Date: Mon, 26 Jan 2015 11:17:37 -0800 (PST)
Subject: [Rd] problem with update.packages() in R-Devel (3.2.0)
	on	Windows
In-Reply-To: <CAFDcVCRoYqWXqAL9Oqo0f8Aow0z9_0wNTo7LsTE=Cx6ZvFL5iA@mail.gmail.com>
Message-ID: <4943441.3229570.1422299857541.JavaMail.root@fredhutch.org>



----- Original Message -----
> From: "Henrik Bengtsson" <hb at biostat.ucsf.edu>
> To: "John Fox" <jfox at mcmaster.ca>
> Cc: "R-devel" <r-devel at r-project.org>
> Sent: Monday, January 26, 2015 11:12:39 AM
> Subject: Re: [Rd] problem with update.packages() in R-Devel (3.2.0) on	Windows
> 
> We are several seeing this one. It's a known bug, cf.
> https://stat.ethz.ch/pipermail/r-devel/2015-January/070513.html
> 

See also 
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16172

> Henrik
> 
> On Mon, Jan 26, 2015 at 9:54 AM, John Fox <jfox at mcmaster.ca> wrote:
> > Dear all,
> >
> > I've noticed the following problem for the past several days:
> >
> > ---------------- snip ----------------
> >> update.packages(ask=FALSE)
> >
> > . . .
> >
> > trying URL
> > 'http://cran.utstat.utoronto.ca/src/contrib/zoo_1.7-11.zip'
> > Error in download.file(url, destfile, method, mode = "wb", ...) :
> >   cannot open URL
> > 'http://cran.utstat.utoronto.ca/src/contrib/zoo_1.7-11.zip'
> > In addition: Warning message:
> > In download.file(url, destfile, method, mode = "wb", ...) :
> >   cannot open: HTTP status was '404 Not Found'
> > Warning in download.packages(pkgs, destdir = tmpd, available =
> > available,  :
> >   download of package 'zoo' failed
> >
> > ---------------- snip ----------------
> >
> > Apparently, the subdirectory for the version number (/3.2) is
> > missing from
> > the URL. 

It's not that the version number is missing, it's that it's looking in the src/contrib section
of the repository (which doesn't have a version number). 

Dan


> > OTOH, install.packages() works fine:
> >
> > ---------------- snip ----------------
> >
> >> install.packages("zoo")
> > trying URL
> > 'http://cran.utstat.utoronto.ca/bin/windows/contrib/3.2/zoo_1.7-11.zip'
> > Content type 'application/zip' length 878614 bytes (858 KB)
> > opened URL
> > downloaded 858 KB
> >
> > package 'zoo' successfully unpacked and MD5 sums checked
> >
> > The downloaded binary packages are in
> >         C:\Users\John
> >         Fox\AppData\Local\Temp\RtmpuKqvB0\downloaded_packages
> >
> > ---------------- snip ----------------
> >
> > Session info:
> >
> > ---------------- snip ----------------
> >
> >> sessionInfo()
> > R Under development (unstable) (2015-01-25 r67615)
> > Platform: x86_64-w64-mingw32/x64 (64-bit)
> > Running under: Windows 7 x64 (build 7601) Service Pack 1
> >
> > locale:
> > [1] LC_COLLATE=English_Canada.1252  LC_CTYPE=English_Canada.1252
> > [3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
> > [5] LC_TIME=English_Canada.1252
> >
> > attached base packages:
> > [1] stats     graphics  grDevices utils     datasets  methods
> >   base
> >
> > loaded via a namespace (and not attached):
> > [1] tools_3.2.0
> >
> > ---------------- snip ----------------
> >
> > Best,
> >  John
> >
> > -------------------------------------------------------
> > John Fox, Professor
> > McMaster University
> > Hamilton, Ontario, Canada
> > http://socserv.mcmaster.ca/jfox/
> >
> >
> >
> >
> > ---
> > This email has been checked for viruses by Avast antivirus
> > software.
> > http://www.avast.com
> >
> > ______________________________________________
> > R-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] problem with update.packages() in R-Devel (3.2.0) on Windows
Dan Tenenbaum