Unable to install Rweka, rJava,qdap on Mac

package-installation
rjava
#1

Hi I have been trying to load library Rweka, qdap but it 's giving me errors, so installed rJava but unable to load it and then installed JDK but still doesn't work.

library(rJava)
Error: package or namespace load failed for ‘rJava’:
.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

0 Likes

#2

I think you may have to run something like "R CMD javareconf" from a command line outside of R.

1 Like