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
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!