Bob Green
2008-Mar-08 09:46 UTC
[R] Error message while trying to update packages: Error in gzfile(file, mode) : unable to open connection
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" . > 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'
Prof Brian Ripley
2008-Mar-08 10:02 UTC
[R] Error message while trying to update packages: Error in gzfile(file, mode) : unable to open connection
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