* installing *source* package ‘MRS’ ...
** package ‘MRS’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-13 (GCC) 13.2.0’
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/MRS/src'
g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG  -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppArmadillo/include' -I/usr/local/include    -fpic  -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection   -c RcppExports.cpp -o RcppExports.o
g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG  -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppArmadillo/include' -I/usr/local/include    -fpic  -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection   -c helpers.cpp -o helpers.o
g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG  -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppArmadillo/include' -I/usr/local/include    -fpic  -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection   -c main.cpp -o main.o
g++-13 -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG  -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppArmadillo/include' -I/usr/local/include    -fpic  -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection   -c recursion.cpp -o recursion.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:117:5: warning: 'x_curr' may be used uninitialized [-Wmaybe-uninitialized]
  117 |     if(x_curr != data)
      |     ^~
helpers.cpp:103:9: note: 'x_curr' was declared here
  103 |     int x_curr;
      |         ^~~~~~
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;
      |         ^~~~~~~~~~~~~~~~~~~~~
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: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;
      |                      ^~~~~~~~~~~
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:230:25: warning: 'PSI_CURR' may be used uninitialized [-Wmaybe-uninitialized]
  230 |             PSI_CURR[0] = compute_post_psi( I,
      |             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
  231 |                                             level,
      |                                             ~~~~~~
  232 |                                             xi_post(0, 0),
      |                                             ~~~~~~~~~~~~~~
  233 |                                             xi_post(0, 2),
      |                                             ~~~~~~~~~~~~~~
  234 |                                             lambda_post.row(0).t() );
      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~
recursion.cpp:56:21: note: 'PSI_CURR' was declared here
   56 |   double *XI_CURR, *PSI_CURR, *UPSILON_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:57:11: warning: 'NU_CURR' may be used uninitialized [-Wmaybe-uninitialized]
   57 |   double *NU_CURR, *THETA_CURR;
      |           ^~~~~~~
recursion.cpp:57:21: warning: 'THETA_CURR' may be used uninitialized [-Wmaybe-uninitialized]
   57 |   double *NU_CURR, *THETA_CURR;
      |                     ^~~~~~~~~~
g++-13 -std=gnu++17 -shared -L/usr/local/gcc13/lib64 -L/usr/local/lib64 -L/usr/local/clang18/lib/x86_64-unknown-linux-gnu -o MRS.so RcppExports.o helpers.o main.o recursion.o -llapack -L/data/gannet/ripley/R/R-devel/lib -lRblas -lgfortran -lm -lquadmath
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/MRS/src'
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/MRS/src'
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/MRS/src'
installing to /data/gannet/ripley/R/packages/tests-devel/MRS.Rcheck/00LOCK-MRS/00new/MRS/libs
** 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
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (MRS)