使用如下命令直接安装可执行文件:
install.packages("XML", type = "binary")
亲测有效
参考:https://stackoverflow.com/questions/26042751/cannot-install-package-xml-to-r