[R-pkg-devel] Trouble installing XML on Windows 7 (64-bit)

Duncan Murdoch murdoch.duncan at gmail.com
Thu Dec 14 19:22:36 CET 2017


On 14/12/2017 12:58 PM, Haigh, Rowan wrote:
> I maintain a few packages on CRAN, one of which depends on the XML package.
> Using the latest R-devel (2017-12-13 r73907), I can install the XML Windows binary from CRAN but I cannot load it:

How exactly did you install XML, and how did you install R-devel?  There 
are several different binary versions of XML on CRAN, and lots of ways 
to build or download R-devel.

I am currently building a copy of R-devel, and will try using

install.packages("XML")

to see if I can reproduce your problem.  I'm not certain my locally 
built copy will match the CRAN binary of R-devel, but we'll see.

Duncan Murdoch

> 
>> require(XML)
> Loading required package: XML
> Error: package or namespace load failed for 'XML':
> package 'XML' was installed by an R version with different internals; it needs to be reinstalled for use with this R version
> 
> I tried installing XML from source, but the compilation requires the libxml library.
> Following the suggestions of various online users, I've tried putting libxml header files from different sources (www.omegahat.net/RSXML/<http://www.omegahat.net/RSXML/>, https://git.gnome.org/browse/libxml2/) in the R-devel/include/libxml directory, but C compilation fails (not surprisingly).
> 
> I'm not a C programmer and would appreciate any help on how to install the R package XML from source on a Windows system.
> Thank-you.
> 
> Rowan Haigh
> --------------------------------------------------------------------------------------------------
> Research Biologist, Pacific Biological Station, Nanaimo, BC V9T 6N7
> Offshore Section, Aquatic Resources Research & Assessment Division, Fisheries and Oceans Canada
> tel. +1 250-363-8718 (IOS Rm 2443), fac simile +1 250-756-7053 (PBS), email rowan.haigh at dfo-mpo.gc.ca<mailto:rowan.haigh at dfo-mpo.gc.ca>
> --------------------------------------------------------------------------------------------------
> Biologiste de recherche, Station biologique du Pacifique, Nanaimo, C.-B. V9T 6N7
> Section extrac�tier, Division de la recherche sur les ressources aquatiques et de l'�valuation, P�ches et Oc�ans Canada
> t�l. +1 250-363-8718 (ISM ch 2443), t�l�copie +1 250-756-7053 (SBP), courriel rowan.haigh at dfo-mpo.gc.ca<mailto:rowan.haigh at dfo-mpo.gc.ca>
> --------------------------------------------------------------------------------------------------
> 
> 
> 	[[alternative HTML version deleted]]
> 
> 
> 
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>



More information about the R-package-devel mailing list