* installing *source* package 'PTT' ...
** this is package 'PTT' version '1.0'
** package 'PTT' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: 'g++.exe (GCC) 14.3.0'
make[1]: Entering directory '/d/temp/2026_07_23_01_50_00_8609/RtmpawVO2J/R.INSTALL33d03401aa3/PTT/src'
g++ -std=gnu++20 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++20 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cgbt.cpp -o cgbt.o
cgbt.cpp: In member function 'void CondGBT::init(arma::Mat<unsigned int>, arma::Mat<unsigned int>)':
cgbt.cpp:47:15: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
47 | for (i=0; i <= k; i++) {
| ~~^~~~
cgbt.cpp:65:15: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
65 | for (i=0; i < nobs; i++) { //since we do it only once, do this for now
| ~~^~~~~~
cgbt.cpp: In member function 'int CondGBT::update_node(double*, int, INDEX_TYPE)':
cgbt.cpp:391:10: warning: 'phi[0]' may be used uninitialized [-Wmaybe-uninitialized]
391 | double phi[2]; // phi is a vector of length n_s_x, that stores log phi(A,s,x) for the current node A for s=0,1,2,...,n_s_x
| ^~~
g++ -std=gnu++20 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c gbt.cpp -o gbt.o
gbt.cpp: In member function 'void GBT::init(arma::Mat<unsigned int>)':
gbt.cpp:803:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
803 | for (i=0; i <= k; i++) {
| ~~^~~~
gbt.cpp:820:17: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'int' [-Wsign-compare]
820 | for (i=0; i < nobs; i++) { //since we do it only once, do this for now
| ~~^~~~~~
gbt.cpp: In member function 'double GBT::get_root_logphi()':
gbt.cpp:886:16: warning: 'log_root_phi' may be used uninitialized [-Wmaybe-uninitialized]
886 | log_root_phi -= log(n_s);
| ~~~~~~~~~~~~~^~~~~~~~~~~
gbt.cpp:881:10: note: 'log_root_phi' was declared here
881 | double log_root_phi;
| ^~~~~~~~~~~~
gbt.cpp: In member function 'double GBT::get_node_logphi(std::vector<double>&)':
gbt.cpp:900:16: warning: 'log_node_phi' may be used uninitialized [-Wmaybe-uninitialized]
900 | log_node_phi -= log(n_s);
| ~~~~~~~~~~~~~^~~~~~~~~~~
gbt.cpp:895:10: note: 'log_node_phi' was declared here
895 | double log_node_phi;
| ^~~~~~~~~~~~
gbt.cpp: In member function 'void GBT::sample_subtree(INDEX_TYPE&, int, int, double)':
gbt.cpp:456:55: warning: 'nu' may be used uninitialized [-Wmaybe-uninitialized]
456 | theta = R::rbeta(theta0 * nu + n0, (1 - theta0) * nu + n1);
| ~~~~~~~~~~~~~^~~~
gbt.cpp:382:12: note: 'nu' was declared here
382 | double nu,log_Ma;
| ^~
g++ -std=gnu++20 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c helpers.cpp -o helpers.o
g++ -std=gnu++20 -I"D:/RCompile/recent/R-4.6.1/include" -DNDEBUG -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.6/RcppArmadillo/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c main.cpp -o main.o
g++ -std=gnu++20 -shared -s -static-libgcc -o PTT.dll tmp.def RcppExports.o cgbt.o gbt.o helpers.o main.o -LD:/RCompile/recent/R-4.6.1/bin/x64 -lRlapack -LD:/RCompile/recent/R-4.6.1/bin/x64 -lRblas -lgfortran -lquadmath -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools45/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.6.1/bin/x64 -lR
make[1]: Leaving directory '/d/temp/2026_07_23_01_50_00_8609/RtmpawVO2J/R.INSTALL33d03401aa3/PTT/src'
make[1]: Entering directory '/d/temp/2026_07_23_01_50_00_8609/RtmpawVO2J/R.INSTALL33d03401aa3/PTT/src'
make[1]: Leaving directory '/d/temp/2026_07_23_01_50_00_8609/RtmpawVO2J/R.INSTALL33d03401aa3/PTT/src'
installing to d:/Rcompile/CRANpkg/lib/4.6/00LOCK-PTT/00new/PTT/libs/x64
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* MD5 sums
packaged installation of 'PTT' as PTT_1.0.zip
* DONE (PTT)