I have recently upgraded both RStudio and base R (latest versions). Seems to have solved most issues but trying to launch the package XLConnect causes RStudio to crash. Works fine in Base R:
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
locale:
[1] LC_COLLATE=Swedish_Finland.1252 LC_CTYPE=Swedish_Finland.1252 LC_MONETARY=Swedish_Finland.1252 LC_NUMERIC=C LC_TIME=Swedish_Finland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.14.2 RODBC_1.3-19
loaded via a namespace (and not attached):
[1] compiler_4.2.0 tools_4.2.0
I think this is related to this issue
opened 11:12AM - 27 Apr 22 UTC
closed 05:53PM - 09 May 22 UTC
bug
When calling rJava::.jinit() in the RStudio console then RStudio shows the dialo… g "R Session Aborted" (R encountered a fatal error).
This happens with R 4.2.0, but not with previous R versions.
In plain R or when sourcing the command as local job in RStudio there is no error.
### System details
RStudio Edition : Desktop
RStudio Version : 2022.02.1 Build 461
OS Version : Windows 10 Pro, 21H2, 64 bit
R Version : 4.2.0 (2022-04-22 ucrt, x86_64-w64-mingw32/x64)
Java Version : 11.0.12 (Temurin - Eclipse Foundation amd64)
### Steps to reproduce the problem
Start RStudio
execute in the console:
```
install.packages("rJava") # if rJava is not installed yet
rJava::.jinit()
```
Alternatives:
- create a file `checkJava.R` that contains `rJava::.jinit()`
- type `source("checkJava.R")`
### Describe the problem in detail
When executing the code or sourcing it, RStudio reports that the R session aborted.
### Describe the behavior you expected
R session should not crash.
- [x] I have read the guide for [submitting good bug reports](https://github.com/rstudio/rstudio/wiki/Writing-Good-Bug-Reports).
- [x] I have installed the latest version of RStudio, and confirmed that the issue still persists.
- [x] If I am reporting an RStudio crash, I have included a [diagnostics report](https://support.rstudio.com/hc/en-us/articles/200321257-Running-a-Diagnostics-Report).
- [x] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[diagnostics-report.txt](https://github.com/rstudio/rstudio/files/8571445/diagnostics-report.txt)
You can try downloading the patched version of R 4.2
andresrcs:
version
Ah - super, that will probably be the reason.
And it was - tried upgrading with the patched version, no problem with loading libraries anymore.
system
Closed
May 20, 2022, 5:44am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.