* using log directory 'd:/Rcompile/CRANpkg/local/4.1/Rforestry.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'Rforestry/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'Rforestry' version '0.9.0.116' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'Rforestry' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.1/Rforestry.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'Rforestry' ... ** package 'Rforestry' successfully unpacked and MD5 sums checked ** using staged installation ** libs *** arch - i386 make[1]: Entering directory '/d/temp/RtmpWilger/R.INSTALL72bc28865522/Rforestry/src-i386' d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c DataFrame.cpp -o DataFrame.o d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RFNode.cpp -o RFNode.o RFNode.cpp: In member function 'void RFNode::predict(std::vector&, std::vector >*, std::vector >&, std::vector*, std::vector >*, DataFrame*, arma::Mat*, bool, double, unsigned int, size_t, std::vector*)': RFNode.cpp:377:22: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare] if (draw == -1) { ~~~~~^~~~~ d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c forestry.cpp -o forestry.o forestry.cpp: In function 'forestry::addTrees(size_t)::': forestry.cpp:284:22: warning: 'currentGroup' may be used uninitialized in this function [-Wmaybe-uninitialized] } else if ((*(getTrainingData()->getGroups()))[i] ^~ d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c forestryTree.cpp -o forestryTree.o d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c multilayerForestry.cpp -o multilayerForestry.o d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c rcpp_cppBuildInterface.cpp -o rcpp_cppBuildInterface.o d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c treeSplitting.cpp -o treeSplitting.o treeSplitting.cpp: In function 'void findBestSplitSymmetricOuter(std::vector*, std::vector*, size_t, size_t, double*, double*, size_t*, size_t*, int*, std::vector*, std::vector*, DataFrame*, size_t, size_t, std::mt19937_64&, bool, size_t, bool, monotonic_info, symmetric_info)': treeSplitting.cpp:2156:11: warning: comparison of integer expressions of different signedness: 'const int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] std::min( ~~~~~~~~~ std::accumulate(CtsRight.begin(), CtsRight.end(), 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ std::accumulate(CtsLeft.begin(), CtsLeft.end(), 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ) < splitNodeSize || ~~^~~~~~~~~~~~~~~ treeSplitting.cpp:2160:13: warning: comparison of integer expressions of different signedness: 'const int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] std::min( ~~~~~~~~~ std::accumulate(CtsRightAvg.begin(), CtsRightAvg.end(), 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ std::accumulate(CtsLeftAvg.begin(), CtsLeftAvg.end(), 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ) < averageNodeSize ~~^~~~~~~~~~~~~~~~~ treeSplitting.cpp:1948:10: warning: variable 'NaMean' set but not used [-Wunused-but-set-variable] double NaMean = std::numeric_limits::quiet_NaN(); ^~~~~~ d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -DR_BUILD -DWIN_R_BUILD -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppArmadillo/include' -I'd:/RCompile/CRANpkg/lib/4.1/RcppThread/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c utils.cpp -o utils.o utils.cpp:21:6: error: redefinition of 'void print_vector(std::vector)' void print_vector( ^~~~~~~~~~~~ utils.cpp:7:6: note: 'void print_vector(std::vector)' previously defined here void print_vector( ^~~~~~~~~~~~ make[1]: *** [D:/RCompile/recent/R-4.1.3/etc/i386/Makeconf:245: utils.o] Error 1 make[1]: Leaving directory '/d/temp/RtmpWilger/R.INSTALL72bc28865522/Rforestry/src-i386' ERROR: compilation failed for package 'Rforestry' * removing 'd:/Rcompile/CRANpkg/lib/4.1/Rforestry' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.1/Rforestry'