Skip to content

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

3 messages · Haigh, Rowan, Gábor Csárdi, Duncan Murdoch

#
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:
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>
--------------------------------------------------------------------------------------------------
#
Those packages were built for R-release. There are no appropriate
windows binaries for R-devel on CRAN currently. You need to
compile/install the source package:

install.packages("XML", type = "source")

Gabor
On Thu, Dec 14, 2017 at 5:58 PM, Haigh, Rowan <Rowan.Haigh at dfo-mpo.gc.ca> wrote:
#
On 14/12/2017 12:58 PM, Haigh, Rowan wrote:
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