(无法安装包)错误:包'fim4r'“arules”编译失败

问题描述 投票:0回答:1

我正在尝试安装 fim4r 包但没有成功。

关于包装的一些信息 在这里输入链接描述

挖掘算法,包括 Christian Borgelt 的关联挖掘算法 Apriori 和 Eclat 的流行且高效的 C 实现代码。此外,fim4r 还提供以下挖矿算法:

library(arules)
arules::fim4r()


..
...
....
.......
-DQUIET -O3 -funroll-loops -Iutil/src -Imath/src  -Itract/src -Iapriori/src -Ieclat/src -Ifpgrowth/src -Isam/src  -Irelim/src -Icarpenter/src -Iista/src -Iaccretion/src -DISTA_ABORT ista/src/ista.c -o ista.o
gcc -std=c99 -Wall -Wextra -Wconversion -Wno-unused-parameter -D__USE_MINGW_ANSI_STDIO=1 -pedantic -c  -DNDEBUG -DQUIET -O3 -funroll-loops -Iutil/src -Imath/src  -Itract/src -Iapriori/src -Ieclat/src -Ifpgrowth/src -Isam/src  -Irelim/src -Icarpenter/src -Iista/src -Iaccretion/src -DISR_CLOMAX -DACC_ABORT \
              accretion/src/accretion.c -o accretion.o
gcc -std=c99 -Wall -Wextra -Wconversion -Wno-unused-parameter -D__USE_MINGW_ANSI_STDIO=1 -pedantic -c  -DNDEBUG -DQUIET -O3 -funroll-loops -Iutil/src -Imath/src  -Itract/src -Iapriori/src -Ieclat/src -Ifpgrowth/src -Isam/src  -Irelim/src -Icarpenter/src -Iista/src -Iaccretion/src -DFPG_ABORT fpgrowth/src/fpgpsp.c -o fpgpsp.o
gcc -std=c99 -Wall -Wextra -Wconversion -Wno-unused-parameter -D__USE_MINGW_ANSI_STDIO=1 -pedantic -c  -DNDEBUG -DQUIET -O3 -funroll-loops -Iutil/src -Imath/src  -Itract/src -Iapriori/src -Ieclat/src -Ifpgrowth/src -Isam/src  -Irelim/src -Icarpenter/src -Iista/src -Iaccretion/src -ID:/Program Files/R/R-43~1.0/include fim4r.c -o fim4r.o
fim4r.c:22:10: fatal error: R.h: No such file or directory
   22 | #include "R.h"
      |          ^~~~~
compilation terminated.
make: *** [Makefile.win:314: fim4r.o] Error 1
ERROR: compilation failed for package 'fim4r'
* removing 'D:/Program Files/R/R-4.3.0/library/fim4r'
Available methods in fim4r are: ‘apriori’, ‘eclat’, ‘fpgrowth’, ‘carpenter’, ‘ista’, ‘relim’, ‘sam’Warning message:
In utils::install.packages(fim4r_url, repos = NULL) :
  installation of package ‘C:/Users/TARAS/AppData/Local/Temp/Rtmpuqdg3g/downloaded_packages/fim4r_latest.tar.gz’ had non-zero exit status

我的会议, 安装 Rtools43

sessionInfo()
R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default


time zone: Asia/Damascus
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] arules_1.7-6 Matrix_1.5-4

loaded via a namespace (and not attached):
[1] compiler_4.3.0  generics_0.1.3  tools_4.3.0     rstudioapi_0.14 grid_4.3.0      lattice_0.21-8 
> 
r arules
1个回答
0
投票

事实证明解决方案很简单..

R
必须安装在C盘。

否则不行

© www.soinside.com 2019 - 2024. All rights reserved.