最近,我在我的Windows 10 PC上将R更新为4.2.0版本。当我试图加载包tabulizer
,RStudio崩溃和炸弹图标与通讯员"R遇到一个致命的错误“出现。我在rJava
、tabulizer
和tabulizerjar
之后重新安装了GitHub回购。这是使用以下命令行:
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch")
此外,我从环境变量手动设置了JAVA_HOME,并使用了命令Sys.setenv(JAVA_HOME = "C:/Program Files/Java/jdk-18.0.1")
。正如您可能注意到的,我使用了上一个JDK版本可用的这里。
这种策略适用于VSCode和R-终端,如果我使用以下方法的话:
Sys.setenv(JAVA_HOME = "C:/Program Files/Java/jdk-18.0.1")
library(tabulizer)
但是,我无法使它在RStudio上工作(版本2022.02.1 Build 461)。
我离开了我的R课程,以供进一步参考:
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Mexico.utf8 LC_CTYPE=Spanish_Mexico.utf8 LC_MONETARY=Spanish_Mexico.utf8 LC_NUMERIC=C
[5] LC_TIME=Spanish_Mexico.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rJava_1.0-6
loaded via a namespace (and not attached):
[1] compiler_4.2.0 tools_4.2.0
https://stackoverflow.com/questions/72033264
复制相似问题