{spcosa} package {rJava} dependency causes RStudio to crash
brownag opened this issue · comments
spcosa examples from the sampling chapter will crash RStudio if you try to build the book (or run the example code) from the IDE.
We've been seeing this problem for a while (~since we got R 4.2 approved) as it affects all packages that load rJava.
This is not a problem with R inherently because building the book from command line works.
This problem in RStudio is resolved with the newly available R 4.2.1 from Software Center.
There was a bad interaction between 4.2.0 and the 2022.02.1 Build 461 of RStudio in how the binary dependencies of rJava were loaded. While folks should update to the latest RStudio also (currently 22.07.0+548), it should be sufficient to just update R.