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