I am trying to get RJava to work.
I have downloaded the 64-bit Java and tried to manually set where to find my java within R Studio.
I keep on getting this error:
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.4/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: @rpath/libjvm.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so
Reason: image not found
Any responses will be apreciated
Take a look at the location here: R, Java, rJava and macOS adventures
You can find there description of how to deal with Java, R, rJava inside macOS. There is some mess, generally, there. You have to pay attention to few things like:
Eventually, you should get it running once setting all the stuff in place.
I don't post full description here as it's quite long. Also, pay attention to JDK settings that allow to run JNI based codes. You need to make sure that JDK has proper settings inside
`/usr/libexec/java_home`/../Info.plist
Lots of things to be done, but eventually, it should work :)
Have fun with R.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.