Re: [R] Error message while trying to update packages: Error in gzfile(file, mode) : unable to open connection

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat, 08 Mar 2008 10:02:06 +0000 (GMT)

On Sat, 8 Mar 2008, Bob Green wrote:

> Hello,
>
> I have just installed v 2.6.2 on a new computer running Windows XP
> and tried to perform 'update packages' via the menu option on the R console.
>
> Any advice on the following problem is much appreciated.
>
> Bob
>
>
> Below are the warning and error messages received. A search of the
> hard drive does not reveal any file including "RtmpgMMu03/libloc" .

It is the session temporary directory, so will not be there after the session.

I think you have some things in your startup directories that do not work -- try starting R with --vanilla. In particular something is looking for package filehash, and that must be in your code.

>
>
> > update.packages(ask='graphics')
> --- Please select a CRAN mirror for use in this session ---
> Warning: unable to access index for repository
> http://cran.au.r-project.org/bin/windows/contrib/2.6
> Warning: unable to access index for repository
> http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.6
> Error in gzfile(file, mode) : unable to open connection
> In addition: Warning message:
> In gzfile(file, mode) :
> cannot open compressed file
> 'C:\DOCUME~1\Bob\LOCALS~1\Temp\RtmpgMMu03/libloc_C%3a%2fPROGRA%7e1%2fR%2fR-26%7e1.2%2flibraryVersion,Priority,Bundle,Contains,Depends,Imports,Suggests,Built.rds',
> probable reason 'No such file or directory'
> > local({pkg <- select.list(sort(.packages(all.available = TRUE)))
> + if(nchar(pkg)) library(pkg, character.only=TRUE)})
> > local({pkg <- select.list(sort(.packages(all.available = TRUE)))
> + if(nchar(pkg)) library(pkg, character.only=TRUE)})
> Loading required package: filehash
> Error: package 'filehash' could not be loaded
> In addition: Warning message:
> In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc
> = lib.loc) :
> there is no package called 'filehash'
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 08 Mar 2008 - 10:08:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Mar 2008 - 10:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive