Unable to install R package due to XML dependency mismatch

后端 未结 4 2076
旧巷少年郎
旧巷少年郎 2021-01-04 20:55

I launched R in my command-line and typed the following:

install.packages(\"XML\")

After selecting a mirror site, I saw the following outpu

4条回答
  •  离开以前
    2021-01-04 21:20

    You explained what is wrong and that helps.

    XML package documentation in here: https://cran.r-project.org/web/packages/XML/index.html

    Pay attetion to where it says You are trying to use a version 2.* edition of libxml but an incompatible library.

    What system are you using? I use OSX and when I had a similar issue I did run

    brew install libxml2
    

    and then it worked

    I also see you use R 3.0+ and that should be very compatible.

提交回复
热议问题