I have been trying to download and use the package glmulti
, but have found no success, since there the error Error: package ‘rJava’ could not be loaded
is continually yielded.
After doing some googling, I found that the solution was to reinstall Java, so I downloaded it via https://java.com/en/download/mac_download.jsp and then restarted my computer. Sadly, the command library(glmulti)
yields the same error as before.
I should note that, when I tried to check what version of Java I had installed using java -version
, I got: Error: object 'java' not found
. How should I remedy this?
Now, there is lots of issues with Java, R and macOS. In general, it's not that easy. If you want to get rJava running in R 3.3, take a look here:
R, Java, rJava and macOS adventures
If you use R 3.4, you will have little bit more struggle due to the fact that most recent R version uses Clang 4.0 :(. Take a look here:
R 3.4, rJava, macOS and even more mess ;)
I am sorry to say that, but I think there is no easy way to get it running without too much effort :(