错误消息:loadNamespace(name):没有名为“ yaml”的软件包

时间:2020-03-10 13:46:51

标签: r install.packages

一段时间以来,我只是第一次启动R,并且在将xml2和其他软件包导入R时收到错误消息。

install.packages("xml2")
library(xml2)
result <- read_xml("IE0216C.xml")

这就是我一直在做的事情,我收到以下两条消息:

The downloaded binary packages are in
    C:\Users\alex-\AppData\Local\Temp\Rtmp0OcyfG\downloaded_packages
Error in loadNamespace(name) : there is no package called ‘yaml’
Error in loadNamespace(name) : there is no package called ‘yaml’
Error in loadNamespace(name) : there is no package called ‘yaml’
Error in loadNamespace(name) : there is no package called ‘yaml’
> library(xml2)
Error: package or namespace load failed for ‘xml2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package named 'Rcpp' 

去年我与R合作了很长时间,但从未遇到过这样的错误,如果有人可以帮助我,我将非常感激。

最好,亚历克斯

0 个答案:

没有答案