加载制表器时的rstudio致命错误

发布于 2025-01-25 00:57:39 字数 1489 浏览 4 评论 0原文

我最近将R在Windows 10 PC上更新为4.2.0版。当我尝试加载软件包Tabulizer时,Rstudio崩溃和炸弹图标带有“ r遇到的致命错误”时出现。我重新安装rjavatabulizertabulizerjar以下 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

带刺的爱情 2025-02-01 00:57:39

当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.

心的位置 2025-02-01 00:57:39

软件包XLSX(也依赖于RJAVA)的问题。
我仍然使用JDK-17.0.3,但是相同的行为(u)r。

复制(最小):

library(rJava)
.jinit()

会话信息:

R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 
 
locale:
[1] LC_COLLATE=English_Belgium.utf8  LC_CTYPE=English_Belgium.utf8    LC_MONETARY=English_Belgium.utf8
[4] LC_NUMERIC=C                     LC_TIME=English_Belgium.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   

Same issue with package xlsx (which also relies on rJava).
I still use jdk-17.0.3, but identical behavio(u)r.

Reproduce (minimal):

library(rJava)
.jinit()

Session info:

R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 
 
locale:
[1] LC_COLLATE=English_Belgium.utf8  LC_CTYPE=English_Belgium.utf8    LC_MONETARY=English_Belgium.utf8
[4] LC_NUMERIC=C                     LC_TIME=English_Belgium.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   
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文