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?