我刚开始使用Rstudio编程,我对XLConnect有一些问题。
我安装了"XLConnect“软件包,然后尝试加载"XLConnect”库,得到了如下错误。
library(XLConnect)
ERROR: package or namespace load failed for'XLconnect':
.onload failed in loadNamespace() for XLConnect, details:
Call. System2("cat",c("/etc/*-release"), stdout =TRUE, stderr = TRUE) error: ' "cat" not found.
sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=Italian_Switzerland.1252 LC_CTYPE=Italian_Switzerland.1252 LC_MONETARY=Italian_Switzerland.1252 LC_NUMERIC=C
[5] LC_TIME=Italian_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.0 tools_4.1.0 rJava_1.0-4任何帮助都是非常感谢的!
谢谢
发布于 2022-06-03 13:19:39
这是XLConnect 1.0.3中的一个bug,它需要在Windows上安装cat。我们在1.0.4中修正了它,所以升级是解决问题的最简单的方法。
如果由于某些原因无法升级,可以尝试在Windows上安装cat,例如使用MINGW-w64。
有关讨论,请参见https://github.com/miraisolutions/xlconnect/issues/132。
https://stackoverflow.com/questions/67938896
复制相似问题