* installing *source* package 'rego' ... ** package 'rego' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: 'gcc.exe (GCC) 13.3.0' using C++ compiler: 'g++.exe (GCC) 13.3.0' make[1]: Entering directory '/d/temp/2024_12_22_01_50_00_26287/RtmpWsn31H/R.INSTALL2817839977692/rego/src' gcc -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/armadillo/include -I../inst/include/optim-master/header_only_version -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -Wstrict-prototypes -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c init.c -o init.o g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG -I../inst/include/armadillo/include -I../inst/include/optim-master/header_only_version -I'D:/RCompile/CRANpkg/lib/4.5/Rcpp/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -DR_NO_REMAP -c rego.cpp -o rego.o In file included from ../inst/include/armadillo/include/armadillo:611, from rego.cpp:48: ../inst/include/armadillo/include/armadillo_bits/auxlib_meat.hpp: In static member function 'static bool arma::auxlib::solve_square_fast(arma::Mat<typename T1::elem_type>&, arma::Mat<typename T1::elem_type>&, const arma::Base<typename T1::elem_type, T1>&)': ../inst/include/armadillo/include/armadillo_bits/auxlib_meat.hpp:3388:34: warning: typedef 'eT' locally defined but not used [-Wunused-local-typedefs] 3388 | typedef typename T1::elem_type eT; | ^~ rego.cpp: In function 'arma::field<arma::Mat<double> > FBF_RS(arma::Mat<double>*, double, arma::Col<double>*, double, double, double, double, bool)': rego.cpp:720:42: error: call of overloaded 'Rf_lchoose(double&, long unsigned int&)' is ambiguous 720 | Mlogbin_sum=log_add(Mlogbin_sum,lchoose(lcv,rr)); In file included from D:/RCompile/CRANpkg/lib/4.5/Rcpp/include/RcppCommon.h:76, from D:/RCompile/CRANpkg/lib/4.5/Rcpp/include/Rcpp.h:27, from ../inst/include/armadillo/include/armadillo_bits/config.hpp:1, from ../inst/include/armadillo/include/armadillo:53: D:/RCompile/recent/R/include/Rmath.h:581:9: note: candidate: 'double Rf_lchoose(double, double)' 581 | double Rf_lchoose(double, double); | ^~~~~~~~~~ D:/RCompile/recent/R/include/Rmath.h:253:25: note: candidate: 'double Rf_lchoose(long unsigned int, long unsigned int)' 253 | #define lchoose Rf_lchoose | ^~~~~~~~~~ rego.cpp:103:8: note: in expansion of macro 'lchoose' 103 | double lchoose(uli n, uli k) | ^~~~~~~ rego.cpp: In function 'str_out_uni_select model_univariate_selection(arma::mat*, double, double, bool, double)': rego.cpp:1102:14: warning: unused variable 'n_tot_mod_c' [-Wunused-variable] 1102 | double n_tot_mod_c=nvars*100; | ^~~~~~~~~~~ rego.cpp:1103:14: warning: unused variable 'C_c' [-Wunused-variable] 1103 | double C_c=0.01; | ^~~ rego.cpp:1109:14: warning: unused variable 'nc' [-Wunused-variable] 1109 | uli nr,nc,nvar_max; | ^~ rego.cpp:1111:12: warning: unused variable 'univariate' [-Wunused-variable] 1111 | bool univariate=1; | ^~~~~~~~~~ rego.cpp:1134:14: warning: unused variable 'log_FBF' [-Wunused-variable] 1134 | double log_FBF; | ^~~~~~~ make[1]: *** [D:/RCompile/recent/R/etc/x64/Makeconf:297: rego.o] Error 1 make[1]: Leaving directory '/d/temp/2024_12_22_01_50_00_26287/RtmpWsn31H/R.INSTALL2817839977692/rego/src' ERROR: compilation failed for package 'rego' * removing 'd:/Rcompile/CRANpkg/lib/4.5/rego' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.5/rego'