Install xlsx and rJava on macOS Mavericks 10.9.5

前端 未结 6 1671
名媛妹妹
名媛妹妹 2020-12-11 04:51

Its being a real nightmare to install rjava on my Mac.

My setup:

MacOS 10.9.5
Java: 7u71 (64 bits dowloaded from Oracle site)
R: R version 3.1.1 (201         


        
6条回答
  •  囚心锁ツ
    2020-12-11 05:45

    I was actually able to avoid editing my environment completely by using the Mac binary to install rJava on my Macbook (running OSX Yosemite and R version 3.2.3). First, do the following in R to install rJava:

    install.packages("rJava", type = "mac.binary")
    

    Presumably independent of this, for some reason I couldn't install xlsx until I first installed the xlsxjars dependency. So do the following in R:

    install.packages(c("xlsxjars", "xlsx"))
    

    And with those two commands, xlsx appears to install just fine on a mac!

提交回复
热议问题