我尝试安装xgboost
软件包。但我偶然发现了这个错误
* installing *source* package 'xgboost' ...
** libs
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-32~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="xgboost.dll" ' had status 127
ERROR: compilation failed for package 'xgboost'
* removing 'C:/Users/mancph01/Documents/R/win-library/3.2/xgboost'
Error: Command failed (1)
我尝试使用此命令从 github 安装此软件包
devtools::install_github('dmlc/xgboost',subdir='R-package')