简体   繁体   English

无法在RStudio中加载“ rvest”库

[英]unable to load 'rvest' library in RStudio

Following error encountered: Loading required package: xml2 Error: package or namespace load failed for 'xml2' in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Users/Shilpa/Documents/R/win-library/3.4/Rcpp/libs/x64/Rcpp.dll': LoadLibrary failure: %1 is not a valid Win32 application. 遇到以下错误:加载所需的包:xml2错误:inDL(x,as.logical(local),as.logical(now),...)中'xml2'的包或名称空间加载失败:无法加载共享对象' C:/Users/Shilpa/Documents/R/win-library/3.4/Rcpp/libs/x64/Rcpp.dll':LoadLibrary失败:%1不是有效的Win32应用程序。

Error: package 'xml2' could not be loaded 错误:无法加载软件包“ xml2”

Possibilities: 可能性:

  1. Corruption of one of more .dll files .dll文件之一损坏
  2. Attempting to mix 32-bit and 64-bit shared libraries. 尝试混合使用32位和64位共享库。
  3. One or more dependencies were simply missing. 根本没有一个或多个依赖项。

Download dependency walker, and use it to check that xml2.dll (and all its dependencies) exist and can be loaded. 下载依赖关系行程序,并使用它来检查xml2.dll(及其所有依赖项)是否存在并可以加载。 Similarly for Rcpp.dll. 对于Rcpp.dll同样如此。 Be sure to use the correct version of dependency walker (32-bit vs 64-bit). 确保使用正确版本的依赖项遍历器(32位和64位)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM