Can Not Install XML Package

前端 未结 4 1942
暖寄归人
暖寄归人 2021-01-15 12:06

I can not install the latest XML package V3.9-4. I mannually install it in RGui by typing:

install.packages(\"LOCALDIR/XML_3.6-0.tar.gz\", repos=NULL, type=         


        
相关标签:
4条回答
  • 2021-01-15 12:54

    You're a windows user (at least your path indicates so) and XML is not available for that OS using the standard binary install. So I see you've tried source, smart but there are pieces that can't compile without rtools and some magic voodoo. So you got two choices:

    1. Learn the magic voodoo to make it install correctly
    2. Go to the CRAN site and the read me file, which tells you Professor Ripley has put them together for you here. This is good to know because RCurl is there too. For a direct download of the package click HERE.

    I can't help you with the voodoo as I opted for the second choice :)

    0 讨论(0)
  • 2021-01-15 13:02

    This is a bit of a punt but I had a similar problem some time ago and it was something to do with having another version of iconv.dll (?) available. I think my rogue version came via cygwin. Making that version unavailable fixed the problem.

    P.S. I am on Windows and have XML installed. Just from the straight binary.

    0 讨论(0)
  • 2021-01-15 13:05

    I fixed this for myself today, noting it here for prosperity.

    On Unbuntu systems, you can fix this by loading libxml2-dev:

    sudo apt-get install libxml2-dev
    

    After I did that, install.packages("XML") ran without a hitch.

    0 讨论(0)
  • 2021-01-15 13:06

    Use the windows binary directly from http://cran.r-project.org/web/packages/XML/index.html

    You will go into your R library director and unzip it there.

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