Problem with xml2 on iMac

ERROR: configuration failed for package ‘xml2’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/xml2’
    Warning in install.packages :
    installation of package ‘xml2’ had non-zero exit status

iMac macOS 10.15.4
R ver. 4.0.0
RStudio ver. 1.3.952

I had a similar issue yesterday after upgrading to R 4.0 on Catalina . You dont show it in your error but I believe the install of xml2 is being done from source. I had to reinstall xcode before it would work.

Open a terminal prompt and run xcode-select --install (two hyphens before install). Then rerun your install in R

Many thanks!

Now is all OK.

Excellent!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.