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
problems installing package XML to a computer without an internet connection
5 messages · Gabor Grothendieck, Brian Ripley, Bob Green
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.
Hello Gabor, I believe I used the method you described to download zip files for rJava, tm, matrix, filehash etc etc. There is no windows zip file for XML, only a gz file which I can't get to load through install local zip file. The XML zip file I located on http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.7/ resulted in the namespace error. regards Bob
At 01:23 PM 11/01/2009, Gabor Grothendieck wrote:
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.
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 received
What 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 the
Why from 2.7? What version is your R?
error I received
So 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
Brian, Thank you for your reply and advice. I hope that I did not give the impression that your build was the cause of the difficulties I experienced. If so, I apologise for this. Your email was helpful in alerting me to the need to install 'proxy' and I subsequently located the current version zip file at: http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.8/ Once I copied this version of the XML file that you wrote, the installation worked without problem. Thank you again, regards Bob
At 06:03 PM 11/01/2009, Prof Brian Ripley wrote:
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 received
What 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 the
Why from 2.7? What version is your R?
error I received
So 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