Я пытаюсь установить эти пакеты в качестве требований машинного обучения для Caret, ниже приведены фрагменты, чтобы попытаться установить его:
library(devtools)
==============kerndwd===========================
install.packages("kerndwd")
install_url("https://cran.r-project.org/src/contrib/Archive/kerndwd/kerndwd_2.0.2.tar.gz")
* installing *source* package 'kerndwd' ...
** using staged installation
** libs
*** arch - i386
C:/Rtools/mingw_32/bin/gfortran -O3 -mtune=generic -c dwd.f90 -o dwd.o
make: C:/Rtools/mingw_32/bin/gfortran: Command not found
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:236: dwd.o] Error 127
ERROR: compilation failed for package 'kerndwd'
* removing 'C:/Users/User/Documents/R/win-library/3.6/kerndwd'
Error: Failed to install 'unknown package' from URL:
(converted from warning) installation of package ‘C:/Users/User/AppData/Local/Temp/RtmpgnwPZl/filed8c47c72cf0/kerndwd_2.0.2.tar.gz’ had non-zero exit status
==============sdwd==============================
install.packages("sdwd")
install_url("https://cran.r-project.org/src/contrib/Archive/sdwd/sdwd_1.0.3.tar.gz")
* installing *source* package 'sdwd' ...
** using staged installation
** libs
*** arch - i386
C:/Rtools/mingw_32/bin/gfortran -O3 -mtune=generic -c auxiliary.f90 -o auxiliary.o
make: C:/Rtools/mingw_32/bin/gfortran: Command not found
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:236: auxiliary.o] Error 127
ERROR: compilation failed for package 'sdwd'
* removing 'C:/Users/User/Documents/R/win-library/3.6/sdwd'
Error: Failed to install 'unknown package' from URL:
(converted from warning) installation of package ‘C:/Users/User/AppData/Local/Temp/RtmpgnwPZl/filed8c43f746c9/sdwd_1.0.3.tar.gz’ had non-zero exit status
============flare=============================
install.packages("flare")
install_url("https://cran.r-project.org/src/contrib/Archive/flare/flare_1.6.0.tar.gz")
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c SFGen.c -o SFGen.o
sh: C:/Rtools/mingw_32/bin/gcc: No such file or directory
make: *** [C:/PROGRA~1/R/R-36~1.1/etc/i386/Makeconf:208: SFGen.o] Error 127
ERROR: compilation failed for package 'flare'
* removing 'C:/Users/User/Documents/R/win-library/3.6/flare'
Может ли кто-нибудь уточнить мне, если пакет не работает или есть ли способ правильно установить его?
(Edit) RTools Path
Sys.which("make")
make
"C:\\rtools40\\usr\\bin\\make.exe"
Rtools Folder
введите описание изображения здесь
(РЕДАКТИРОВАТЬ 2) Кажется, что я не устанавливаю Rtools полностью, переустановил Rtools должным образом с 32-битными и 64-битными, готовыми для сборки пакетов, а затем попытаюсь переустановить пакеты, kerndwd
и sdwd
пакеты уже успешно установлены, но не с пакетами flare .. вот журнал, когда я пытаюсь установить пакеты flare
> install_url("https://cran.r-project.org/src/contrib/Archive/flare/flare_1.6.0.tar.gz")
Downloading package from url: https://cran.r-project.org/src/contrib/Archive/flare/flare_1.6.0.tar.gz
√ checking for file 'C:\Users\User\AppData\Local\Temp\RtmpIvesYl\remotes1978219737bd\flare/DESCRIPTION' (5.5s)
- preparing 'flare':
√ checking DESCRIPTION meta-information ...
- cleaning src
√ checking vignette meta-information
- checking for LF line-endings in source and make files and shell scripts (507ms)
- checking for empty or unneeded directories
- looking to see if a 'data/datalist' file should be added
- building 'flare_1.6.0.tar.gz'
Installing package into ‘C:/Users/User/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package 'flare' ...
** using staged installation
** libs
*** arch - i386
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c SFGen.c -o SFGen.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c euc_proj.c -o euc_proj.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c mymath.c -o mymath.o
mymath.c: In function 'max_fabs_vc':
mymath.c:141:11: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
int i,cnt;
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c registerDynamicSymbol.c -o registerDynamicSymbol.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c slim_dantzig_ladm_scr.c -o slim_dantzig_ladm_scr.o
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr':
slim_dantzig_ladm_scr.c:262:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
^
slim_dantzig_ladm_scr.c:261:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
int j,k,m,ndata,dim,nlambda,ite1,ite2,ite,max_ite0,max_ite1,max_ite2,num_scr,num_scr1,num_scr2,num_scr1_tmp,num_scr2_tmp,flag,flag1,flag2;
^
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr2':
slim_dantzig_ladm_scr.c:411:21: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,rho,zero,eps,eps1,ilambda;
^
slim_dantzig_ladm_scr.c:410:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
int j,k,m,ndata,dim,nlambda,ite1,ite,max_ite0,max_ite1,num_scr,num_scr1,num_scr1_tmp,flag,flag1;
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c slim_lad_ladm_scr_btr.c -o slim_lad_ladm_scr_btr.o
slim_lad_ladm_scr_btr.c: In function 'slim_lad_ladm_scr_btr':
slim_lad_ladm_scr_btr.c:236:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb;
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c slim_lasso_ladm_scr.c -o slim_lasso_ladm_scr.o
slim_lasso_ladm_scr.c: In function 'lasso_ladm_scr':
slim_lasso_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
^
slim_lasso_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
^
slim_lasso_ladm_scr.c: In function 'slim_lasso_ladm_scr':
slim_lasso_ladm_scr.c:183:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c slim_lq_ladm_scr_btr.c -o slim_lq_ladm_scr_btr.o
slim_lq_ladm_scr_btr.c: In function 'slim_lq_ladm_scr_btr':
slim_lq_ladm_scr_btr.c:242:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb,qrtn;
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c slim_sqrt_ladm_scr.c -o slim_sqrt_ladm_scr.o
slim_sqrt_ladm_scr.c: In function 'sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:12:92: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
^
slim_sqrt_ladm_scr.c:12:86: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
^
slim_sqrt_ladm_scr.c: In function 'slim_sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:285:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb;
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c slimh.c -o slimh.o
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c sugm_clime_ladm_scr.c -o sugm_clime_ladm_scr.o
sugm_clime_ladm_scr.c: In function 'sugm_clime_ladm_scr':
sugm_clime_ladm_scr.c:11:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
^
C:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O3 -Wall -std=gnu99 -mtune=generic -c sugm_tiger_ladm_scr.c -o sugm_tiger_ladm_scr.o
sugm_tiger_ladm_scr.c: In function 'tiger_lasso_ladm_scr':
sugm_tiger_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
^
sugm_tiger_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
^
sugm_tiger_ladm_scr.c: In function 'sugm_tiger_ladm_scr':
sugm_tiger_ladm_scr.c:205:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb,tau0;
^
C:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o flare.dll tmp.def SFGen.o euc_proj.o mymath.o registerDynamicSymbol.o slim_dantzig_ladm_scr.o slim_lad_ladm_scr_btr.o slim_lasso_ladm_scr.o slim_lq_ladm_scr_btr.o slim_sqrt_ladm_scr.o slimh.o sugm_clime_ladm_scr.o sugm_tiger_ladm_scr.o -LC:/PROGRA~1/R/R-36~1.1/bin/i386 -lR
installing to C:/Users/User/Documents/R/win-library/3.6/00LOCK-flare/00new/flare/libs/i386
*** arch - x64
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c SFGen.c -o SFGen.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c euc_proj.c -o euc_proj.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c mymath.c -o mymath.o
mymath.c: In function 'max_fabs_vc':
mymath.c:141:11: warning: variable 'cnt' set but not used [-Wunused-but-set-variable]
int i,cnt;
^
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c registerDynamicSymbol.c -o registerDynamicSymbol.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c slim_dantzig_ladm_scr.c -o slim_dantzig_ladm_scr.o
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr':
slim_dantzig_ladm_scr.c:262:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
^
slim_dantzig_ladm_scr.c:261:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
int j,k,m,ndata,dim,nlambda,ite1,ite2,ite,max_ite0,max_ite1,max_ite2,num_scr,num_scr1,num_scr2,num_scr1_tmp,num_scr2_tmp,flag,flag1,flag2;
^
slim_dantzig_ladm_scr.c: In function 'slim_dantzig_ladm_scr2':
slim_dantzig_ladm_scr.c:411:21: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,rho,zero,eps,eps1,ilambda;
^
slim_dantzig_ladm_scr.c:410:15: warning: variable 'ndata' set but not used [-Wunused-but-set-variable]
int j,k,m,ndata,dim,nlambda,ite1,ite,max_ite0,max_ite1,num_scr,num_scr1,num_scr1_tmp,flag,flag1;
^
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c slim_lad_ladm_scr_btr.c -o slim_lad_ladm_scr_btr.o
slim_lad_ladm_scr_btr.c: In function 'slim_lad_ladm_scr_btr':
slim_lad_ladm_scr_btr.c:236:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb;
^
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c slim_lasso_ladm_scr.c -o slim_lasso_ladm_scr.o
slim_lasso_ladm_scr.c: In function 'lasso_ladm_scr':
slim_lasso_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
^
slim_lasso_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT;
^
slim_lasso_ladm_scr.c: In function 'slim_lasso_ladm_scr':
slim_lasso_ladm_scr.c:183:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
^
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c slim_lq_ladm_scr_btr.c -o slim_lq_ladm_scr_btr.o
slim_lq_ladm_scr_btr.c: In function 'slim_lq_ladm_scr_btr':
slim_lq_ladm_scr_btr.c:242:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,nrholamb,qrtn;
^
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c slim_sqrt_ladm_scr.c -o slim_sqrt_ladm_scr.o
slim_sqrt_ladm_scr.c: In function 'sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:12:92: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
^
slim_sqrt_ladm_scr.c:12:86: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,alp_dif,beta_dif,mu_dif,threshold,tmpd,alp_tild_sq,alp_th,ratio,epsT;
^
slim_sqrt_ladm_scr.c: In function 'slim_sqrt_ladm_scr':
slim_sqrt_ladm_scr.c:285:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb;
^
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c slimh.c -o slimh.o
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c sugm_clime_ladm_scr.c -o sugm_clime_ladm_scr.o
sugm_clime_ladm_scr.c: In function 'sugm_clime_ladm_scr':
sugm_clime_ladm_scr.c:11:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda;
^
C:/Rtools/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-36~1.1/include" -DNDEBUG -O2 -Wall -std=gnu99 -mtune=generic -c sugm_tiger_ladm_scr.c -o sugm_tiger_ladm_scr.o
sugm_tiger_ladm_scr.c: In function 'tiger_lasso_ladm_scr':
sugm_tiger_ladm_scr.c:12:58: warning: variable 'epsT' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
^
sugm_tiger_ladm_scr.c:12:52: warning: variable 'ratio' set but not used [-Wunused-but-set-variable]
double gap_ext,max_dif,beta_dif,threshold,tmpd,ratio,epsT,tau0,tau1,tmp;
^
sugm_tiger_ladm_scr.c: In function 'sugm_tiger_ladm_scr':
sugm_tiger_ladm_scr.c:205:24: warning: variable 'zero' set but not used [-Wunused-but-set-variable]
double T,T1,T2,rho,zero,eps,eps1,eps2,ilambda,sqrtn,nrholamb,tau0;
^
C:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o flare.dll tmp.def SFGen.o euc_proj.o mymath.o registerDynamicSymbol.o slim_dantzig_ladm_scr.o slim_lad_ladm_scr_btr.o slim_lasso_ladm_scr.o slim_lq_ladm_scr_btr.o slim_sqrt_ladm_scr.o slimh.o sugm_clime_ladm_scr.o sugm_tiger_ladm_scr.o -LC:/PROGRA~1/R/R-36~1.1/bin/x64 -lR
installing to C:/Users/User/Documents/R/win-library/3.6/00LOCK-flare/00new/flare/libs/x64
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'lattice' was built under R version 3.6.3
Execution halted
ERROR: lazy loading failed for package 'flare'
* removing 'C:/Users/User/Documents/R/win-library/3.6/flare'
Error: Failed to install 'unknown package' from URL:
(converted from warning) installation of package ‘C:/Users/User/AppData/Local/Temp/RtmpIvesYl/file1978444e5b5a/flare_1.6.0.tar.gz’ had non-zero exit status