加载制表器时的rstudio致命错误
我最近将R在Windows 10 PC上更新为4.2.0版。当我尝试加载软件包Tabulizer
时,Rstudio崩溃和炸弹图标带有“ r遇到的致命错误”时出现。我重新安装rjava
,tabulizer
和tabulizerjar
以下 github repo 。这是,使用以下命令行:
远程:: install_github(c(“ ropensci/tabulizerjars”,“ ropensci/tabulizer”),install_opts =“ ---no-multiarch”)
此外,I此外,I从我的环境变量中手动设置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
I recently updated R to version 4.2.0 on my Windows 10 PC. When I try to load the package tabulizer
, RStudio crashes and the bomb icon with the correspondent "R encountered a fatal error" appears. I reinstalled rJava
, tabulizer
and tabulizerjar
following the GitHub Repo. This is, using the following command line:
remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer"), INSTALL_opts = "--no-multiarch")
In addition, I set manually the JAVA_HOME from my environment variables and used the command Sys.setenv(JAVA_HOME = "C:/Program Files/Java/jdk-18.0.1")
. As you may notice, I used the last JDK version available here.
This strategy worked on VSCode and in R-Terminal if I used the following:
Sys.setenv(JAVA_HOME = "C:/Program Files/Java/jdk-18.0.1")
library(tabulizer)
However, I could not make it work on RStudio (version 2022.02.1 Build 461).
I left my R Session for further reference:
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当R工作正常时,我与Rstudio遇到了同样的问题。我最终通过安装R版本4.1.3来使它起作用。相信在最新版本,即4.2.0版中存在问题。
I had the same issue with RStudio while R worked just fine. I eventually got it work by installing R version 4.1.3. Believe there are issues caused this in the latest release, i.e. version 4.2.0.
软件包XLSX(也依赖于RJAVA)的问题。
我仍然使用JDK-17.0.3,但是相同的行为(u)r。
复制(最小):
会话信息:
Same issue with package xlsx (which also relies on rJava).
I still use jdk-17.0.3, but identical behavio(u)r.
Reproduce (minimal):
Session info: