RStudio/R“升级”到OSX Yosemite后的RJava加载错误
rJava
xlsx
R.app
rJava
rJava
library(rJava)Error : .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.2/Resources/library/rJava/libs/rJava.so': dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: @rpath/libjvm.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rJava/libs/rJava.so Reason: image not foundError: package or namespace load failed for ‘rJava’
rJava
rJava
.bash_profile
导出JAVA_HOME=“/usr/libexec/java_home-v1.8” 导出LD_Library_PATH=$JAVA_HOME/jre/lib/server
Sudo R CMD javareconf-n
options("java.home")
NULL
options(“java.home”=“/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre”)
rJava
rJava
.onLoad failed in loadNamespace() for 'rJava'
LD_LIBRARY_PATH=$(/usr/libexec/java_home)/jre/lib/server:OPEN-一个RStudio
rJava
rJava
rJava
rJava
慕森王
繁星coding