rJava load error in RStudio/R after “upgrading” to OSX Yosemite

前端 未结 18 2163
Happy的楠姐
Happy的楠姐 2020-11-22 04:23

I recently \"upgraded\" from OSX Mountain Lion to Yosemite and from R 3.1.3 to 3.2. Immediately after the upgrade, when I opened R or RStudio I got a pop-up message saying t

18条回答
  •  爱一瞬间的悲伤
    2020-11-22 05:11

    I noticed that 'rJava' is pretty strict about JDK version while loading in Rstudio.
    In my case (Mac OS. 10.14.6 - Mojave) I had installed jdk-13 which was tested against jdk-11.
    I have linked my JDK version to a non-existent directory that was assumed to be valid by Rstudio (JDK 11):

    sudo ln -sf /Library/Java/JavaVirtualMachines/jdk-13.jdk/ /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk
    

    and suprisingly it works like a charm...
    BTW., there was no problem to run 'rJava' following the previous instructions in native R.

提交回复
热议问题