Dear R experts: I tried two ways to install Package:XML on windows xp for R 1.9.1, all failed. Messages are given as bellows: 1> download from CRAN> install.packages("XML", CRAN = getOption("CRAN"),+ contriburl = contrib.url("http://cran.r-project.org"), + available = NULL, destdir = NULL, + installWithVers = FALSE) trying URL `http://cran.r-project.org/bin/windows/contrib/1.9/PACKAGES' Content type `text/plain; charset=iso-8859-1' length 20065 bytes opened URL downloaded 19Kb Warning message: No package "XML" on CRAN. in: download.packages(pkgs, destdir = tmpd, available = available, 2> Download binary code XML_0.97.0.zip from http://www.omegahat.org/RSXML/ unzipt to goXML directory:> install.packages("C:/goXML/XML")trying URL `http://cran.r-project.org/bin/windows/contrib/1.9/PACKAGES' Content type `text/plain; charset=iso-8859-1' length 20065 bytes opened URL downloaded 19Kb Warning message: No package "C:/goXML/XML" on CRAN. in: download.packages(pkgs, destdir = tmpd, available = available, Could you please help me install it sucessfully? Thank you for your hellp!
On Tue, 24 Aug 2004 szhan at uoguelph.ca wrote:> I tried two ways to install Package:XML on windows xp for R 1.9.1, all failed.But you did not read the ReadMe's. Do read the ReadMe at http://cran.r-project.org/bin/windows/contrib/1.9. -- 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
Hello, Uwe, Thank you all for your reply! I installed binary packages XML_0.97.0.zip by "Install package(s) from local zip file" and followed instruction in the doc: you will have to add the XML/libs directory to your path. Putting them into the directory which contains Rgui.exe and Rterm.exe for this version of R is probably best. I then put add the XML/libs directory to director rw1091/bin, but it still gave messagae like this:> library("XML")Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "C:/PROGRA~1/R/rw1091/library/XML/libs/XML.dll": LoadLibrary failure: The specified module could not be found. Error in library("XML") : package/namespace load failed What should I do now? Josh Quoting Uwe Ligges <ligges at statistik.uni-dortmund.de>:> Prof Brian Ripley wrote: > > On Tue, 24 Aug 2004 szhan at uoguelph.ca wrote: > > > > > >>I tried two ways to install Package:XML on windows xp for R 1.9.1, all > failed. > > > > > > But you did not read the ReadMe's. > > > > Do read the ReadMe at http://cran.r-project.org/bin/windows/contrib/1.9. > > Additionally, after you have got the right package, read the docs how to > install binary packages from the local hard disc. > > Uwe Ligges >