在R

时间:2019-03-28 21:35:56

标签: r r-xlsx

我正在尝试在R中编写一个带有数据帧的xlsx文件。我能够安装xlsx软件包,但是library(“ xlsx”)出现此错误:

  

错误:“ xlsx”的包或名称空间加载失败:.onLoad失败   用于'rJava'的loadNamespace(),详细信息:调用:dyn.load(file,DLLpath =   DLLpath,...)错误:无法加载共享对象   '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so':   dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so,   6):库未加载:   /图书馆/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib   引用自:   /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so   原因:找不到图片

我尝试了library(rJava),但我也遇到了错误:

  

错误:“ rJava”的程序包或名称空间加载失败:.onLoad失败   用于'rJava'的loadNamespace(),详细信息:调用:dyn.load(file,DLLpath =   DLLpath,...)错误:无法加载共享对象   '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so':   dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so,   6):库未加载:   /图书馆/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib   引用自:   /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so   原因:找不到图片

0 个答案:

没有答案