Cannot install package XML to R

前端 未结 6 1337
刺人心
刺人心 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: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.

提交回复
热议问题