* using log directory 'd:/Rcompile/CRANpkg/local/4.1/bartcs.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 'bartcs/DESCRIPTION' ... OK * this is package 'bartcs' version '1.0.0' * 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 'bartcs' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/4.1/bartcs.Rcheck/00install.out' for details. * DONE The installation logfile: * installing *source* package 'bartcs' ... ** package 'bartcs' successfully unpacked and MD5 sums checked ** using staged installation ** libs *** arch - i386 make[1]: Entering directory '/d/temp/RtmpK2yDhk/R.INSTALL129206e066054/bartcs/src-i386' d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c BART.cpp -o BART.o d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11 -I"D:/RCompile/recent/R-4.1.3/include" -DNDEBUG -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I"d:/Compiler/gcc-4.9.3/local330/include" -fopenmp -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Models.cpp -o Models.o Models.cpp: In member function 'void SeparateModel::predict(Rcpp::NumericVector&, int, const std::vector >&) const': Models.cpp:18:24: error: found ':' in nested-name-specifier, expected '::' for (const auto& x : full_X) ^ :: Models.cpp:18:22: error: 'x' has not been declared for (const auto& x : full_X) ^ Models.cpp:18:32: error: qualified-id in declaration before ')' token for (const auto& x : full_X) ^ Models.cpp:24:6: error: expected ';' before 'outcome' } ^ ; outcome(id) = res / N; ~~~~~~~ Models.cpp:26:1: error: expected primary-expression before '}' token } ^ Models.cpp:25:27: error: expected ')' before '}' token outcome(id) = res / N; ^ ) } ~ Models.cpp:18:9: note: to match this '(' for (const auto& x : full_X) ^ Models.cpp:26:1: error: expected primary-expression before '}' token } ^ Models.cpp:18:5: error: expected iteration declaration or initialization for (const auto& x : full_X) ^~~ Models.cpp:12:9: warning: unused variable 'N' [-Wunused-variable] int N = full_X.size(); ^ Models.cpp:13:12: warning: unused variable 'res' [-Wunused-variable] double res = 0.0; ^~~ make[1]: *** [D:/RCompile/recent/R-4.1.3/etc/i386/Makeconf:245: Models.o] Error 1 make[1]: Leaving directory '/d/temp/RtmpK2yDhk/R.INSTALL129206e066054/bartcs/src-i386' ERROR: compilation failed for package 'bartcs' * removing 'd:/Rcompile/CRANpkg/lib/4.1/bartcs' * restoring previous 'd:/Rcompile/CRANpkg/lib/4.1/bartcs'