Hi,
I am using a macOS Mojave version 10.14.5 and RStudio Version 1.2.1335 and am unable to install RWeka and Rjava. I am trying to do C4.5 Decision tree. I have tried to download java as well as use "sudo R CMD javareconf" which nothing seems to work. This is the error I am repeatedly getting:
library(RWeka)
Error: package or namespace load failed for ‘RWeka’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/rJava.so
Reason: image not found
Any help will be appreciated !!