James_qs 发表于 2021-12-27 10:48 
用你的方法安装成功了,感谢感谢
为什么我的显示* installing *source* package 'mvpart' ...
** package 'mvpart' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: 'gcc.exe (GCC) 12.3.0'
gcc -I"E:/R/R-4.3.3/include" -DNDEBUG -I"E:/Rtools/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c anova.c -o anova.o
In file included from anova.c:6:
rpart.h:37:5: error: unknown type name 'Sint'
37 | Sint *numcat; /* variable type: 0=cont, 1+ =#categories */
| ^~~~
rpart.h:38:5: error: unknown type name 'Sint'
38 | Sint **sorts; /* allocated on the fly */
| ^~~~
make: *** [E:/R/R-4.3.3/etc/x64/Makeconf:265: anova.o] Error 1
ERROR: compilation failed for package 'mvpart'
* removing 'E:/R/R-4.3.3/library/mvpart'
Warning in install.packages :
安装程序包‘D:/mvpart_1.6-2.tar.gz’时退出狀態的值不是0