* installing *source* package 'MRS' ...
** package 'MRS' successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: 'g++.exe (GCC) 12.3.0'
make[1]: Entering directory '/d/temp/2024_11_20_01_50_01_8813/RtmpuIWRGI/R.INSTALLfa7816b0544d/MRS/src'
g++ -std=gnu++17  -I"D:/RCompile/recent/R-4.3.3/include" -DNDEBUG  -I'D:/RCompile/CRANpkg/lib/4.3/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.3/RcppArmadillo/include'   -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17  -I"D:/RCompile/recent/R-4.3.3/include" -DNDEBUG  -I'D:/RCompile/CRANpkg/lib/4.3/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.3/RcppArmadillo/include'   -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c helpers.cpp -o helpers.o
helpers.cpp: In function 'arma::vec newtonMethod(arma::vec, arma::vec, double, double)':
helpers.cpp:275:8: warning: variable 'foundSol' set but not used [-Wunused-but-set-variable]
  275 |   bool foundSol = false;
      |        ^~~~~~~~
helpers.cpp: In function 'std::pair<bool, INDEX_TYPE_t> make_parent_index(INDEX_TYPE&, short unsigned int, int, short unsigned int)':
helpers.cpp:121:39: warning: 'parent_index_var_prev' may be used uninitialized [-Wmaybe-uninitialized]
  121 |         x_curr += parent_index.var[i] - parent_index_var_prev - 1;
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
helpers.cpp:104:9: note: 'parent_index_var_prev' was declared here
  104 |     int parent_index_var_prev;
      |         ^~~~~~~~~~~~~~~~~~~~~
helpers.cpp:121:16: warning: 'x_curr' may be used uninitialized [-Wmaybe-uninitialized]
  121 |         x_curr += parent_index.var[i] - parent_index_var_prev - 1;
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
helpers.cpp:103:9: note: 'x_curr' was declared here
  103 |     int x_curr;
      |         ^~~~~~
g++ -std=gnu++17  -I"D:/RCompile/recent/R-4.3.3/include" -DNDEBUG  -I'D:/RCompile/CRANpkg/lib/4.3/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.3/RcppArmadillo/include'   -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c main.cpp -o main.o
g++ -std=gnu++17  -I"D:/RCompile/recent/R-4.3.3/include" -DNDEBUG  -I'D:/RCompile/CRANpkg/lib/4.3/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.3/RcppArmadillo/include'   -I"d:/rtools43/x86_64-w64-mingw32.static.posix/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c recursion.cpp -o recursion.o
recursion.cpp: In member function 'void class_tree::compute_map(INDEX_TYPE&, int, arma::mat)':
recursion.cpp:299:10: warning: unused variable 'row' [-Wunused-variable]
  299 |   uword  row, col, slice;
      |          ^~~
recursion.cpp:299:15: warning: unused variable 'col' [-Wunused-variable]
  299 |   uword  row, col, slice;
      |               ^~~
recursion.cpp: In member function 'void class_tree::representative_subtree(INDEX_TYPE&, int, short unsigned int, arma::Mat<unsigned int>, arma::Col<unsigned int>, arma::Col<unsigned int>, arma::uword)':
recursion.cpp:818:18: warning: unused variable 'max_val' [-Wunused-variable]
  818 |           double max_val = loglike.max(state_star);
      |                  ^~~~~~~
recursion.cpp: In member function 'void class_tree::update()':
recursion.cpp:57:21: warning: 'THETA_CURR' may be used uninitialized [-Wmaybe-uninitialized]
   57 |   double *NU_CURR, *THETA_CURR;
      |                     ^~~~~~~~~~
recursion.cpp:57:11: warning: 'NU_CURR' may be used uninitialized [-Wmaybe-uninitialized]
   57 |   double *NU_CURR, *THETA_CURR;
      |           ^~~~~~~
recursion.cpp:272:24: warning: 'UPSILON_CURR' may be used uninitialized [-Wmaybe-uninitialized]
  272 |           UPSILON_CURR += n_states;
      |           ~~~~~~~~~~~~~^~~~~~~~~~~
recursion.cpp:56:32: note: 'UPSILON_CURR' was declared here
   56 |   double *XI_CURR, *PSI_CURR, *UPSILON_CURR;
      |                                ^~~~~~~~~~~~
recursion.cpp:269:19: warning: 'PSI_CURR' may be used uninitialized [-Wmaybe-uninitialized]
  269 |           PSI_CURR++;
      |           ~~~~~~~~^~
recursion.cpp:56:21: note: 'PSI_CURR' was declared here
   56 |   double *XI_CURR, *PSI_CURR, *UPSILON_CURR;
      |                     ^~~~~~~~
recursion.cpp:245:31: warning: 'XI_CURR' may be used uninitialized [-Wmaybe-uninitialized]
  245 |                   XI_CURR[it] = xi_post(s, t);
      |                   ~~~~~~~~~~~~^~~~~~~~~~~~~~~
recursion.cpp:56:11: note: 'XI_CURR' was declared here
   56 |   double *XI_CURR, *PSI_CURR, *UPSILON_CURR;
      |           ^~~~~~~
recursion.cpp:255:33: warning: 'LAMBDA_CURR' may be used uninitialized [-Wmaybe-uninitialized]
  255 |                 LAMBDA_CURR[it] = lambda_post(s, d);
      |                 ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
recursion.cpp:55:22: note: 'LAMBDA_CURR' was declared here
   55 |   double *CHI_CURR, *LAMBDA_CURR;
      |                      ^~~~~~~~~~~
g++ -std=gnu++17 -shared -s -static-libgcc -o MRS.dll tmp.def RcppExports.o helpers.o main.o recursion.o -LD:/RCompile/recent/R-4.3.3/bin/x64 -lRlapack -LD:/RCompile/recent/R-4.3.3/bin/x64 -lRblas -lgfortran -lm -lquadmath -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools43/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.3.3/bin/x64 -lR
make[1]: Leaving directory '/d/temp/2024_11_20_01_50_01_8813/RtmpuIWRGI/R.INSTALLfa7816b0544d/MRS/src'
make[1]: Entering directory '/d/temp/2024_11_20_01_50_01_8813/RtmpuIWRGI/R.INSTALLfa7816b0544d/MRS/src'
make[1]: Leaving directory '/d/temp/2024_11_20_01_50_01_8813/RtmpuIWRGI/R.INSTALLfa7816b0544d/MRS/src'
installing to d:/Rcompile/CRANpkg/lib/4.3/00LOCK-MRS/00new/MRS/libs/x64
** R
** 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 'MRS' as MRS_1.2.6.zip
* DONE (MRS)