Bob Green
2009-Jan-11 02:50 UTC
[R] problems installing package XML to a computer without an internet connection
Hello, I am hoping for some advice regarding how I can install the XML package which I require to run package tm. Normally I would use the install package option, however, I have to install the packages to a laptop running XP. The laptop does not have an internet connection. Firstly I tried the file - XML_1.99-0.tar.gz . Below is the error I received Error in gzfile(file, "r") : cannot open the connection In addition: Warning messages: 1: In zip.unpack(pkg, tmpDir) : error 1 in extracting from zip file 2: In gzfile(file, "r") : cannot open compressed file 'XML_1.99-0.tar.gz/DESCRIPTION', probable reason 'No such file or directory' Then I tried XML 1.96-0.zip (from http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.7/). Below is the error I received Loading required package: XML Error in loadNamespace(i, c(lib.loc, .libPaths())) : there is no package called 'proxy' Error: package/namespace load failed for 'tm' Any suggestions are appreciated, Bob
Gabor Grothendieck
2009-Jan-11 03:23 UTC
[R] problems installing package XML to a computer without an internet connection
On a computer with an internet connection use your browser to find and download the XML package zip file. (Note that this step does not involve using R.) Transfer zip file to XP. Start up R on the XP & use the menus: Packages | Install package(s) from local zip file to install it. On Sat, Jan 10, 2009 at 9:50 PM, Bob Green <bgreen at dyson.brisnet.org.au> wrote:> Hello, > > I am hoping for some advice regarding how I can install the XML package > which I require to run package tm. > > Normally I would use the install package option, however, I have to install > the packages to a laptop running XP. The laptop does not have an internet > connection. > > Firstly I tried the file - XML_1.99-0.tar.gz . Below is the error I > received > > Error in gzfile(file, "r") : cannot open the connection > In addition: Warning messages: > 1: In zip.unpack(pkg, tmpDir) : error 1 in extracting from zip file > 2: In gzfile(file, "r") : > cannot open compressed file 'XML_1.99-0.tar.gz/DESCRIPTION', probable > reason 'No such file or directory' > > Then I tried XML 1.96-0.zip (from > http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.7/). Below is the > error I received > > Loading required package: XML > Error in loadNamespace(i, c(lib.loc, .libPaths())) : > there is no package called 'proxy' > Error: package/namespace load failed for 'tm' > > Any suggestions are appreciated, > > Bob > > ______________________________________________ > 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. >
Prof Brian Ripley
2009-Jan-11 08:03 UTC
[R] problems installing package XML to a computer without an internet connection
On Sun, 11 Jan 2009, Bob Green wrote:> Hello, > > I am hoping for some advice regarding how I can install the XML package which > I require to run package tm. > > Normally I would use the install package option, however, I have to install > the packages to a laptop running XP.Windows, I presume.> The laptop does not have an internet connection. > > Firstly I tried the file - XML_1.99-0.tar.gz . Below is the error I > receivedWhat does 'try' mean? That would work if you used Rcmd INSTALL on it, or install.packages(type="source").> Error in gzfile(file, "r") : cannot open the connection > In addition: Warning messages: > 1: In zip.unpack(pkg, tmpDir) : error 1 in extracting from zip file > 2: In gzfile(file, "r") : > cannot open compressed file 'XML_1.99-0.tar.gz/DESCRIPTION', probable > reason 'No such file or directory' > > Then I tried XML 1.96-0.zip (from > http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.7/). Below is theWhy from 2.7? What version is your R?> error I receivedSo that worked: it is 'proxy' you are missing. From the DESCRIPTION file package: tm Title: Text Mining Package Version: 0.3-3 Date: 2008-12-20 Author: Ingo Feinerer, with contributions from Christian Buchta, Kurt Hornik, David Meyer, and Fridolin Wild Maintainer: Ingo Feinerer <feinerer at logic.at> Depends: R (>= 2.7.0), filehash, Matrix, methods, Snowball, XML Imports: proxy Suggests: Rgraphviz, Rmpi, Rstem (>= 0.3-1), snow still you may need packages filehash, Matrix, methods, Snowball and proxy. I suggest getting those from bin/windows/contrib/2.7/ on CRAN, and installing from the 'Local zip file' menu optipn.> Loading required package: XML > Error in loadNamespace(i, c(lib.loc, .libPaths())) : > there is no package called 'proxy' > Error: package/namespace load failed for 'tm' > > Any suggestions are appreciated,Read the posting guide, remember to tell us what we asked for 'at a minumum' and what you actually did.> Bob > > ______________________________________________ > 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