- n/ E1 N* p( z. o# P0 a) P! Y8 {* L, \* Z! `/ G' b
到底怎么做啊?楼主用的mac,也不知道怎么在R里面写路径,然后尝试以下三个方法,都不行,快崩溃了。 7 Q5 t8 ~# `$ q8 P% A8 s' _2 q( ] : n- t h' @8 J+ n 0 A' C5 `; @$ I% s$ `> library(xlsx) 4 ^! L2 D+ _7 y2 \JavaVM: requested Java version ((null)) not available. Using Java at "" instead.0 B; y$ f( [' F0 t8 H% f. l& e
JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib2 b( w0 U. ^+ q2 ?! S
JavaVM FATAL: Failed to load the jvm library.. e+ |1 v" y- ~' Z
Error : loadNamespace()里算'xlsx'时.onLoad失败了,详细内容:7 ]& i, i( o$ n: `2 R9 _* O: Y
调用: .jinit()$ n' K. A1 Y+ Z7 R
错误: JNI_GetCreatedJavaVMs returned -1+ R: |8 \" w b" F% g
; @! S3 N* Y% Z5 U 7 P& x7 i' K$ N错误: ‘xlsx’程辑包或名字空间载入失败,; \) H7 E/ r9 W( u0 ^
> read.csv("数据处理.csv",header=T) 4 z3 O7 F3 p0 _9 p: WError in file(file, "rt") : 无法打开链结 y, o! T; ^7 a( v; \此外: Warning message: ! f4 q2 `3 k9 j, pIn file(file, "rt") : 无法打开文件'数据处理.csv': No such file or directory- f' R. B4 C' f7 a. i3 h2 C
> read.table("clipboard",header=T) . K, ^% P+ E5 N! L8 e7 RError in file(file, "rt") : 无法载入X11模块; H# l) X8 S. H+ D, h
此外: Warning message: 6 v/ l1 ^8 S$ sIn file(file, "rt") : : y; N0 L2 Q: w6 y3 p无法载入共享目标对象‘/Library/Frameworks/R.framework/Resources/modules//R_X11.so’:: 6 [" P: }1 N( _5 A: Ydlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib - L( L, ?. B. eReferenced from: /Library/Frameworks/R.framework/Resources/modules//R_X11.so4 [+ n0 y) N1 C, s0 H+ i h/ [ d
Reason: image not found . I+ n6 ]8 ]% r Z# ^ 8 I( f1 u" L9 u8 D2 O% K2 T: c# {# a' d4 J; c7 R
2 l. D0 H: H6 m