最近,我一直在使用XLConnect包读取R中受密码保护的工作表,在试图读取文件时出现了以下错误。有人熟悉这个错误吗?
Error: NoSuchMethodError (Java): org.apache.xmlbeans.XmlCursor.close()V
会议资料:
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C LC_TIME=English_United States.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] XLConnect_1.0.6
loaded via a namespace (and not attached):
[1] compiler_4.2.2 fastmap_1.1.0 cli_3.4.1 htmltools_0.5.3 tools_4.2.2 rstudioapi_0.14 yaml_2.3.6 rmarkdown_2.17
[9] knitr_1.40 xfun_0.34 digest_0.6.30 rJava_1.0-6 rlang_1.0.6 evaluate_0.17 fortunes_1.5-4
我已经更新了XLConnect。
发布于 2022-11-21 01:38:04
看来这个问题已经由软件包开发人员解决了。我尝试了下面的解决方案,它对我有效。
全线程:https://github.com/miraisolutions/xlconnect/issues/181
特定修复:https://github.com/miraisolutions/xlconnect/issues/181#issuecomment-1299911543
发布于 2022-11-17 09:10:08
同样的R& XLConnect版本,我也有同样的问题,而且还没有找到任何锻炼。因为我需要完成一些事情,所以很可能不得不切换到openxlsx。
https://stackoverflow.com/questions/74350370
复制相似问题