With a package such as XML available from multiple repositories, you
have to be very precise what you are talking about.
On CRAN, there is a source package for version 3.9-4. That can be
compiled for multiple architectures on a Mac, and there are such
binaries on CRAN.
It only works in a UTF-8 locale, and hence there has needed to be a
modified version for Windows, on CRANextras.
However, the home for XML is www.omegahat.org. There are two different
versions there, and neither work on Linux. (3.93-0 in the Omegahat
repository and http://www.omegahat.org/RSXML/XML_3.94-0.tar.gz.)
The CRAN team have been trying for weeks to sort this out, but the XML
maintainer is barely responsive.
With a CRAN build of R for MacOS, you get binary packages by default,
either from the command-line or from R.app. You get those of the
achitecture(s) which were built: this is normally both ix64 and x64_86
(and perhaps ppc) but for a few tens of packages the person in charge
(for CRAN, Simon Urbanek) needs to set up exceptions. As packages do
change, sometimes the need to add an exception pops up unexpectedly.
On 28/09/2012 07:05, ricardo.julio.rodriguez.fernan...@sergas.es wrote:
Hi!
________________________________________
From: Simon Urbanek [simon.urba...@r-project.org]
Sent: 28 September 2012 02:24
To: Rodriguez Fernandez, Ricardo Julio
Cc: r-sig-mac@r-project.org
Subject: Re: [R-SIG-Mac] ‘package ‘XML’ is not installed for 'arch=x86_64'’
On Sep 27, 2012, at 6:25 PM, <ricardo.julio.rodriguez.fernan...@sergas.es>
wrote:
Hi,
I'm trying to confirm I understand how packages are installed and manage in R
to be able to better interpret error/warning messages.
In a Mac OS X installation of R I get this error:
require(XML)
Loading required package: XML
Failed with error: ‘package ‘XML’ is not installed for 'arch=x86_64'’
But the graphical interface R Package Installer says that version 3.9-4 is
installed.
It is installed, but only for 32-bit and you are trying to load it in 64-bit R.
Please, where am I wrong?
Use 32-bit R or if you want to use XML in 64-bit R, you have to compile it for
64-bit. AFAICS XML currently doesn't
pass checks on any platform, so there are no binaries and you have to compile it
from sources. If you want both 32-bit and 64-bit > you'll have to use
--merge-multiarch INSTALL option or use the two-step process described in the Mac
FAQ.
Cheers,
Simon
Following other replies to this thread this is what I get here after installing
from the command line without switches the XML binary available at CRAN...
Package: XML
Version: 3.9-4
ReleaseDate: 2012/01/30
...
Repository: CRAN
Date/Publication: 2012-01-31 07:37:18
Built: R 2.15.0; universal-apple-darwin9.8.0; 2012-03-31 00:12:17 UTC; unix
Archs: i386, ppc, x86_64
So, it seems that i386 and x86_64 are available by installing that binary.
Please, what am I misunderstanding here?
Thanks for your help!
Ricardo
Thanks!
sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] graphics grDevices utils datasets stats methods base
other attached packages:
[1] foreign_0.8-50
loaded via a namespace (and not attached):
[1] tools_2.15.1
Nota: A información contida nesta mensaxe e os seus posibles documentos
adxuntos é privada e confidencial e está dirixida únicamente ó seu
destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por
favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos
adjuntos es privada y confidencial y está dirigida únicamente a su
destinatario/a. Si usted no es el/la destinatario/a original de este mensaje,
por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
See more languages: http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
--
Brian D. Ripley, rip...@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
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac