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

前端 未结 18 2097
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条回答
  •  萌比男神i
    2020-11-22 04:54

    Here is the easy steps for it:

    1. remove the rJava package: remove.packages(rJava)
    2. close R
    3. install latest Java on you mac
    4. open terminal and type this command: sudo R CMD javareconf
    5. Open R and install rJava with this command:

      install.packages("rJava", dependencies=TRUE, type="source")

提交回复
热议问题