R 在渐晕图中执行示例时出错
我正在试用R 在渐晕图中执行示例时出错,r,R,我正在试用RKEA软件包,并运行了vignette中列出的示例,如下所示: library("RKEA") library("tm") data("crude") keywords <- list(c("Diamond", "crude oil", "price"), c("OPEC", "oil", "price"), c("Texaco", "oil", "price", "decrease"),
RKEA
软件包,并运行了vignette中列出的示例,如下所示:
library("RKEA")
library("tm")
data("crude")
keywords <- list(c("Diamond", "crude oil", "price"),
c("OPEC", "oil", "price"),
c("Texaco", "oil", "price", "decrease"),
c("Marathon Petroleum", "crude", "decrease"),
c("Houston Oil", "revenues", "decrease"),
c("Kuwait", "OPEC", "quota"))
tmpdir <- tempfile()
dir.create(tmpdir)
model <- file.path(tmpdir, "crudeModel")
createModel(crude[1:6], keywords, model)
你的操作系统是什么?你的Java版本是什么?我无法在使用Oracle Java 1.8.0_66的Ubuntu上重现此错误。您是否同时安装了32位和64位版本的Java?没有,但我仍然安装了Java 7,由于另一个应用程序需要旧版本的Java,我犹豫是否要删除它。
Error in .jcall(km, "V", "saveModel") :
java.lang.NoSuchMethodError: weka.core.Attribute.<init>(Ljava/lang/String;Lweka/core/FastVector;)V
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_Singapore.1252 LC_CTYPE=English_Singapore.1252
[3] LC_MONETARY=English_Singapore.1252 LC_NUMERIC=C
[5] LC_TIME=English_Singapore.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tm_0.6-2 NLP_0.1-8 RKEA_0.0-6 RWekajars_3.7.12-1
[5] RWeka_0.4-24
loaded via a namespace (and not attached):
[1] parallel_3.2.2 tools_3.2.2 slam_0.1-32 RKEAjars_5.0-1 grid_3.2.2
[6] rJava_0.9-7