I upgraded to OSX Yosemite yesterday. When I run library(xlsx) in RStudio, the program crashes and I get the message: \"To open \'RStudio\' you need to
library(xlsx)
RStudio
instead the java you have installed download this one
https://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
after installing it, your problem will be solved