在mac环境下安装Rwordseg
在Rstudio中:
library(rJava)
install.packages("Rwordseg", repos = "http://R-Forge.R-project.org", type = "source")
试开URL’http://R-Forge.R-project.org/src/contrib/Rwordseg_0.2-1.tar.gz'Content type 'application/x-gzip' length 5445754 bytes (5.2 MB)
downloaded 5.2 MB
- installing source package ‘Rwordseg’ ... ** R ** demo ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded JavaVM: requested Java version ((null)) not available. Using Java at "" instead. JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib JavaVM FATAL: Failed to load the jvm library. Error : .onAttach failed in attachNamespace() for 'Rwordseg', details: call: .jinit() error: JNI_GetCreatedJavaVMs returned -1
错误: 载入失败
停止执行
ERROR: loading failed
- removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/Rwordseg’ Warning in install.packages : installation of package ‘Rwordseg’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/94/v3kp1kgx06b9gdytx5zhp42r0000gn/T/RtmpTopx4s/downloaded_packages’
这个错误是因为java的环境没配置好么
求解答