问题描述
我正在尝试按照此页面中的说明执行“规则挖掘”:https://rdrr.io/cran/rCBA/man/fpgrowth.html :
#load library
library(rCBA)
library(rJava)
#load data
data("iris")
#format data
train <- sapply(iris,as.factor)
train <- data.frame(train,check.names=FALSE)
txns <- as(train,"transactions")
#run the desired procedure
rules = rCBA::fpgrowth(txns,support=0.03,confidence=0.03,maxLength=2,consequent="Species",parallel=FALSE)
这将返回以下错误:
Error: .onLoad Failed in loadNamespace() for 'rJava',details:
call: fun(libname,pkgname)
error: JAVA_HOME cannot be determined from the Registry
我尝试安装/卸载必要的软件包,但错误仍然存在。有谁知道如何解决这个错误?
我在下面发布了我的 R 会话中的系统日志:
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252
attached base packages:
[1] grid stats graphics Grdevices utils datasets methods base
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)