在OSX 10.13.2上的RStudio中安装XLConnect时出错

时间:2018-01-23 10:47:44

标签: r rjava xlconnect

我在OSX 10.13.2上使用RStudio版本1.1.414 请协助我解决出现的错误。 我尝试加载XLConnect时出现的错误消息如下:

library("XLConnect", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")

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 '/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
Error: package ‘XLConnectJars’ could not be loaded

library("XLConnectJars", lib.loc="/Library/Frameworks/R.framework/Versions/3.4/Resources/library")

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 '/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

0 个答案:

没有答案