Cannot Load R Xlsx Package on MAC Os 10.11

trouble installing and loading rJava on mac El Capitan

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')

Trouble Installing xlsx

Try to set:

Sys.setenv("JAVA_HOME" = "C:\\Path to Java\\jreversion")

in .RProfile in your project.

Package xlsx needs to know where your java installation is.

For building a package which uses xlsx, you need the java jdk.

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

I had the same problem and went through the same steps as you. The final step to allow starting RStudio through Finder/Spotlight was to link libjvm.dylib to /usr/local/lib:

sudo ln -f -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib

-f flag is added to force overwriting existing file/link



Related Topics



Leave a reply



Submit