不成功我一直试图在R(和Rstudio)上使用XLConnect。显然安装了XLConnect,XLConnectJars和rJava但是在加载时出现以下错误:
library(XLConnect)
Loading required package: XLConnectJars
Error: package or namespace load failed for 'XLConnectJars':
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Users/JorgeEd/Library/R/3.4/library
/rJava/libs/rJava.so':
dlopen(/Users/JorgeEd/Library/R/3.4/library/rJava/libs/rJava.so, 6): Library
not loaded: @rpath/libjvm.dylib
Referenced from: /Users/JorgeEd/Library/R/3.4/library/rJava/libs/rJava.so
Reason: image not found
Error: package 'XLConnectJars' could not be loaded
尝试加载XLConnect
或rJava
有什么想法吗?
R version 3.4.2 (2017-09-28)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
OS X - 10.11.6
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)