I recently upgraded OSX from Mojave to Catalina. After the upgrade I couldn't run JGR() package in Rstudio because rJava could not be loaded. I repeatedly get the error:
Loading required package: 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/r .Java/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/li .bs/rJava.so
Reason: image not found
Error: package ‘rJava’ could not be loaded
Last time I had this problem (in OSX Mojave) I installed all packages using "install.packages("data", type = "binary"), however this doesn't solve the problem this time.
Can anyone help me and fix this problem? Any solutions how to proceed?