* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘regmed’ ...
** this is package ‘regmed’ version ‘2.1.5’
** package ‘regmed’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-14 (Debian 14.3.0-5) 14.3.0’
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpS25NcF/R.INSTALL111dbc627ad41/regmed/src'
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp  -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppExports.cpp -o RcppExports.o
In file included from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:29,
                 from RcppExports.cpp:4:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.’
   71 |         #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
      |                                                                                                                                                         ^
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp  -fpic  -g -O2 -Wall -pedantic -mtune=native   -c mvregmed.cpp -o mvregmed.o
In file included from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:29,
                 from mvregmed.cpp:1:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.’
   71 |         #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
      |                                                                                                                                                         ^
mvregmed.cpp: In function ‘arma::mat col_outerprod_row(arma::mat&, arma::mat&, int, int)’:
mvregmed.cpp:127:9: warning: unused variable ‘ncolA’ [-Wunused-variable]
  127 |     int ncolA = A.n_cols;
      |         ^~~~~
mvregmed.cpp:129:9: warning: unused variable ‘nrowB’ [-Wunused-variable]
  129 |     int nrowB = B.n_rows;
      |         ^~~~~
mvregmed.cpp: In function ‘int count_df(arma::mat&)’:
mvregmed.cpp:464:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  464 |     for (int i = 0; i < A.n_rows; i++) {
      |                     ~~^~~~~~~~~~
mvregmed.cpp:465:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  465 |         for (int j = 0; j < A.n_cols; j++) {
      |                         ~~^~~~~~~~~~
mvregmed.cpp: In function ‘int count_df_Vary(arma::mat&)’:
mvregmed.cpp:477:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  477 |     for (int i = 0; i < V.n_rows; i++) {
      |                     ~~^~~~~~~~~~
mvregmed.cpp:478:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  478 |         for (int j = i; j < V.n_cols; j++) {
      |                         ~~^~~~~~~~~~
mvregmed.cpp: In function ‘void print_vec(arma::vec)’:
mvregmed.cpp:617:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  617 |   for(int i = 0; i < x.size(); i++){
      |                  ~~^~~~~~~~~~
mvregmed.cpp: In function ‘Rcpp::List rcpp_mvregmed(arma::mat, arma::mat, arma::mat, arma::mat, arma::mat, arma::mat, arma::mat, double, double, int, int, double, double, double, bool)’:
mvregmed.cpp:773:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  773 |     for (int i_alpha = 0; i_alpha < alpha.n_rows; i_alpha++) {
      |                           ~~~~~~~~^~~~~~~~~~~~~~
mvregmed.cpp:774:37: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  774 |       for (int j_alpha = 0; j_alpha < alpha.n_cols; j_alpha++) {
      |                             ~~~~~~~~^~~~~~~~~~~~~~
mvregmed.cpp:880:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  880 |     for (int i_beta = 0; i_beta < beta.n_rows; i_beta++) {
      |                          ~~~~~~~^~~~~~~~~~~~~
mvregmed.cpp:881:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  881 |       for (int j_beta = 0; j_beta < beta.n_cols; j_beta++) {
      |                            ~~~~~~~^~~~~~~~~~~~~
mvregmed.cpp:981:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  981 |     for (int i_delta = 0; i_delta < delta.n_rows; i_delta++) {
      |                           ~~~~~~~~^~~~~~~~~~~~~~
mvregmed.cpp:982:37: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  982 |       for (int j_delta = 0; j_delta < delta.n_cols; j_delta++) {
      |                             ~~~~~~~~^~~~~~~~~~~~~~
mvregmed.cpp:1080:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
 1080 |     for (int i_vary = 0; i_vary < vary.n_rows; i_vary++) {
      |                          ~~~~~~~^~~~~~~~~~~~~
mvregmed.cpp:1081:40: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
 1081 |       for (int j_vary = i_vary; j_vary < vary.n_cols; j_vary++) {
      |                                 ~~~~~~~^~~~~~~~~~~~~
mvregmed.cpp:696:10: warning: unused variable ‘pen_loss_end’ [-Wunused-variable]
  696 |   double pen_loss_end = 0.0;
      |          ^~~~~~~~~~~~
mvregmed.cpp:723:7: warning: unused variable ‘nt’ [-Wunused-variable]
  723 |   int nt = vary.n_rows;
      |       ^~
g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG  -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp  -fpic  -g -O2 -Wall -pedantic -mtune=native   -c regmed.cpp -o regmed.o
In file included from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:29,
                 from regmed.cpp:1:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.’
   71 |         #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
      |                                                                                                                                                         ^
regmed.cpp: In function ‘arma::mat compute_B(arma::vec&, arma::vec&, double)’:
regmed.cpp:234:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const arma::uword’ {aka ‘const unsigned int’} [-Wsign-compare]
  234 |   for(int i = 0; i < B.n_rows; i++){
      |                  ~~^~~~~~~~~~
regmed.cpp:244:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  244 |   for(int i = 0; i < alpha.size(); i++){
      |                  ~~^~~~~~~~~~~~~~
regmed.cpp: In function ‘arma::mat inverse_ImpCov(arma::vec&, arma::vec&, double, arma::mat&)’:
regmed.cpp:269:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  269 |   for(int i = 0; i < alpha.size(); i++){
      |                  ~~^~~~~~~~~~~~~~
regmed.cpp: In function ‘arma::vec update_theta(arma::vec&, arma::vec&, double, double, double)’:
regmed.cpp:325:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  325 |   for(int i = 0; i < diff.size(); i++){
      |                  ~~^~~~~~~~~~~~~
regmed.cpp:334:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  334 |     for(int i = 0; i <  diff.size(); i++){
      |                    ~~^~~~~~~~~~~~~~
regmed.cpp:338:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  338 |     for(int i = 0; i <  diff.size(); i++){
      |                    ~~^~~~~~~~~~~~~~
regmed.cpp: In function ‘double penalty(arma::vec&, arma::vec&, double, double, double, double)’:
regmed.cpp:369:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  369 |   for(int i = 0; i < alpha.size(); i++){
      |                  ~~^~~~~~~~~~~~~~
regmed.cpp: In function ‘Rcpp::List rcpp_regmed(arma::vec, arma::vec, double, double, double, arma::mat, arma::mat, double, double, double, double, int, int, double, double, double, bool)’:
regmed.cpp:759:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘arma::uword’ {aka ‘unsigned int’} [-Wsign-compare]
  759 |   for(int i = 0; i < alpha.size(); i++){
      |                  ~~^~~~~~~~~~~~~~
regmed.cpp:501:10: warning: unused variable ‘varx_old’ [-Wunused-variable]
  501 |   double varx_old = 0.0;
      |          ^~~~~~~~
regmed.cpp:502:10: warning: unused variable ‘varx_new’ [-Wunused-variable]
  502 |   double varx_new = 0.0;
      |          ^~~~~~~~
regmed.cpp:503:10: warning: unused variable ‘varx_diff’ [-Wunused-variable]
  503 |   double varx_diff = 0.0;
      |          ^~~~~~~~~
regmed.cpp:507:10: warning: unused variable ‘vary_diff’ [-Wunused-variable]
  507 |   double vary_diff = 0.0;
      |          ^~~~~~~~~
regmed.cpp:514:10: warning: unused variable ‘pen_loss_end’ [-Wunused-variable]
  514 |   double pen_loss_end = 0.0;
      |          ^~~~~~~~~~~~
regmed.cpp:526:10: warning: unused variable ‘grad_varx’ [-Wunused-variable]
  526 |   double grad_varx = 0.0;
      |          ^~~~~~~~~
g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o regmed.so RcppExports.o mvregmed.o regmed.o -fopenmp -llapack -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lRblas -lgfortran -lm -lquadmath -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpS25NcF/R.INSTALL111dbc627ad41/regmed/src'
make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpS25NcF/R.INSTALL111dbc627ad41/regmed/src'
make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpS25NcF/R.INSTALL111dbc627ad41/regmed/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-regmed/00new/regmed/libs
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘regmed’
    finding HTML links ... done
    medsim                                  html  
    mvregmed.dat.check                      html  
    mvregmed.edges                          html  
    mvregmed.fit                            html  
    mvregmed.graph.attributes               html  
    mvregmed.grid                           html  
    mvregmed.grid.bestfit                   html  
    mvregmed.grid.data                      html  
    mvregmed.grid.update                    html  
    mvregmed.init                           html  
    mvregmed.lavaan.dat                     html  
    mvregmed.lavaan.model                   html  
    plot.mvregmed.grid                      html  
    plot.regmed.grid                        html  
    regmed-package                          html  
    regmed.edges                            html  
    regmed.fit                              html  
    regmed.grid                             html  
    regmed.grid.bestfit                     html  
    regmed.lavaan.dat                       html  
    regmed.lavaan.model                     html  
    regmed.prefilter                        html  
    summary.mvregmed                        html  
** building package indices
** installing vignettes
** 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 (regmed)