Cannot install package XML to R

前端 未结 6 1316
刺人心
刺人心 2021-01-02 17:15

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

相关标签:
6条回答
  • 2021-01-02 17:16

    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
    
    0 讨论(0)
  • 2021-01-02 17:25

    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.

    1. Navigate to C:\Program Files\R\R-3.6.2\
    2. Right click on the library folder
    3. Click Properties
    4. Select the Security tab
    5. Click the Edit... button
    6. In Group or user names, select the Users row
    7. In the Permissions for Users, ensure Full Control is checked

    Then I had to run

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

    After this, running require(XML) worked.

    0 讨论(0)
  • 2021-01-02 17:34

    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

    0 讨论(0)
  • 2021-01-02 17:36

    From Unable to install R package due to XML dependency mismatch the conda way

    $ conda install -c r r-xml=3.98_1.5

    0 讨论(0)
  • 2021-01-02 17:37

    try sudo apt-get install r-cran-xml, it works on my machine with R == 3.6.3, ubuntu 20.04

    0 讨论(0)
  • 2021-01-02 17:43

    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.

    0 讨论(0)
提交回复
热议问题