I need to install the package \"XML\" to R. It always reports \"XML is not available for R(Version 3.1.1)\" I have tried to download the .tar but it still did\'n work. Can a
I was facing the same issue. However, I installed xml in conda separately using the following command and it worked out for me
conda install -c r r-xml
When installing on Windows, I have to first make sure the C:\Program Files\R\R-3.6.2\library
folder was not read only and editable by the current user.
C:\Program Files\R\R-3.6.2\
library
folderProperties
Security
tabEdit...
buttonGroup or user names
, select the Users
rowPermissions for Users
, ensure Full Control
is checkedThen I had to run
install.packages("XML", type = "binary")
After this, running require(XML)
worked.
Use
install.packages("XML")
It worked for me.
install.packages("XML", repos = "http://www.omegahat.org/R");
The above code returned the same error for me as well. I am also using R 3.1.1
From Unable to install R package due to XML dependency mismatch the conda
way
$ conda install -c r r-xml=3.98_1.5
try sudo apt-get install r-cran-xml
, it works on my machine with R == 3.6.3, ubuntu 20.04
In general, install.packages("XML")
worked well for me in the past, but I recently had an issue with R version 3.6.3.
The solution for me was:
install.packages("XML", repos = "http://www.omegahat.net/R")
Note that it's .net, not .org.