Trying to load rJava package and getting error. Using MacOS X Catalina

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/':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rJava/libs/, 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/
Reason: image not found

Hi, and welcome!

For future reference, please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers. Not needed for this problem, though.

The error message shows that there is no installation of Java on the system. (If you ask me, that's just fine, but tastes differ.)

Because of Apple's improved security measures, installing it isn't necessarily click-and-go, but see

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.