R: rJava package install failing

后端 未结 17 1260
Happy的楠姐
Happy的楠姐 2020-11-22 16:28

When installing rJava using the install.packages(\"rJava\") command I get the following error:

checking Java support in R... present:
interprete         


        
17条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 16:41

    The problem was rJava wont install in RStudio (Version 1.0.136). The following worked for me (macOS Sierra version 10.12.6) (found here):

    Step-1: Download and install javaforosx.dmg from here

    Step-2: Next, run the command from inside RStudio:

    install.packages("rJava", type = 'source')
    

提交回复
热议问题