我使用RWEKA并成功了。突然停了下来。我做了以下操作,并得到了不同的错误消息。我拥有R和Java的所有最新版本。
> install.packages("RWeka",type = "source")
Installing package into ‘C:/Users/aw/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/RWeka_0.4-39.tar.gz'
Content type 'application/x-gzip' length 416678 bytes (406 KB)
downloaded 406 KB
* installing *source* package 'RWeka' ...
** package 'RWeka' successfully unpacked and MD5 sums checked
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (RWeka)
The downloaded source packages are in
‘C:\Users\aw\AppData\Local\Temp\RtmpQzFtao\downloaded_packages’
及之后:
> require("RWeka")
Loading required package: RWeka
Error : .onLoad failed in loadNamespace() for 'RWeka', details:
call: .jnew("weka.core.WekaPackageManager")
error: java.lang.NoClassDefFoundError: Could not initialize class weka.core.WekaPackageManager