* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’
* installing *source* package ‘SpatMCA’ ...
** package ‘SpatMCA’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++-13 (Debian 13.2.0-13) 13.2.0’
make[1]: Entering directory '/tmp/Rtmp2ovucP/R.INSTALL35b39611a589cb/SpatMCA/src'
g++-13 -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'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppExports.cpp -o RcppExports.o
g++-13 -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'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppParallel/include' -I/usr/local/include -D_FORTIFY_SOURCE=3  -fopenmp -fpic  -g -O2 -Wall -pedantic -mtune=native   -c RcppSpatMCA.cpp -o RcppSpatMCA.o
RcppSpatMCA.cpp: In function ‘arma::mat cubicmatrix(arma::vec)’:
RcppSpatMCA.cpp:27:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   27 |   for (unsigned j = 0; j < p - 2; ++j)
      |                        ~~^~~~~~~
RcppSpatMCA.cpp:34:26: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   34 |   for (unsigned j = 0; j < p - 3; ++j)
      |                        ~~^~~~~~~
RcppSpatMCA.cpp: In member function ‘virtual void tpm::operator()(std::size_t, std::size_t)’:
RcppSpatMCA.cpp:51:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   51 |       for (unsigned j = 0; j < p; j++)
      |                            ~~^~~
RcppSpatMCA.cpp:76:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
   76 |       for (unsigned k = 0; k < d; ++k)
      |                            ~~^~~
RcppSpatMCA.cpp: In function ‘arma::mat tpm2(arma::mat, arma::mat, arma::mat)’:
RcppSpatMCA.cpp:126:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  126 |   for (unsigned newi = 0; newi < pnew; newi++)
      |                           ~~~~~^~~~~~
RcppSpatMCA.cpp:128:28: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  128 |     for (unsigned i = 0; i < K; i++)
      |                          ~~^~~
RcppSpatMCA.cpp:131:30: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  131 |       for (unsigned j = 0; j < p; j++)
      |                            ~~^~~
RcppSpatMCA.cpp: In function ‘void spatmca_tau1(arma::mat&, arma::mat&, arma::mat&, arma::mat, int, int, double, int, double)’:
RcppSpatMCA.cpp:172:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
  172 |   for (unsigned iter = 0; iter < maxit; iter++)
      |                           ~~~~~^~~~~~~
RcppSpatMCA.cpp: In function ‘void spatmca_tau2(arma::mat&, arma::mat&, arma::mat&, arma::mat&, arma::mat&, arma::mat, double, double, int, int, double, int, double)’:
RcppSpatMCA.cpp:207:32: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
  207 |   for (unsigned iter = 0; iter < maxit; iter++)
      |                           ~~~~~^~~~~~~
RcppSpatMCA.cpp: In function ‘Rcpp::List spatmcacv_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’:
RcppSpatMCA.cpp:639:25: warning: comparison of integer expressions of different signedness: ‘arma::uword’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  639 |     for (uword m = 0; m < M; m++)
      |                       ~~^~~
RcppSpatMCA.cpp:700:25: warning: comparison of integer expressions of different signedness: ‘arma::uword’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  700 |     for (uword m = 0; m < M; m++)
      |                       ~~^~~
RcppSpatMCA.cpp: In function ‘Rcpp::List spatmcacvall_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’:
RcppSpatMCA.cpp:928:23: warning: comparison of integer expressions of different signedness: ‘arma::uword’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  928 |   for (uword m = 0; m < M; m++)
      |                     ~~^~~
In file included from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo:661,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57,
                 from /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/RcppArmadillo.h:29,
                 from RcppSpatMCA.cpp:5:
In member function ‘arma::Mat<eT>& arma::Mat<eT>::operator=(eT) [with eT = double]’,
    inlined from ‘Rcpp::List spatmcacv_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’ at RcppSpatMCA.cpp:690:12:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:812:22: warning: ‘tempout’ may be used uninitialized [-Wmaybe-uninitialized]
  812 |   access::rw(mem[0]) = val;
      |   ~~~~~~~~~~~~~~~~~~~^~~~~
RcppSpatMCA.cpp: In function ‘Rcpp::List spatmcacv_rcpp(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::NumericMatrix, int, int, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, int, double, Rcpp::NumericVector, Rcpp::NumericVector)’:
RcppSpatMCA.cpp:583:46: note: ‘tempout’ was declared here
  583 |   double cvtau1u, cvtau1v, cvtau2u, cvtau2v, tempout;
      |                                              ^~~~~~~
g++-13 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o SpatMCA.so RcppExports.o RcppSpatMCA.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 '/tmp/Rtmp2ovucP/R.INSTALL35b39611a589cb/SpatMCA/src'
make[1]: Entering directory '/tmp/Rtmp2ovucP/R.INSTALL35b39611a589cb/SpatMCA/src'
make[1]: Leaving directory '/tmp/Rtmp2ovucP/R.INSTALL35b39611a589cb/SpatMCA/src'
installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-SpatMCA/00new/SpatMCA/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘SpatMCA’
    finding HTML links ... done
    SpatMCA-package                         html  
    checkInputData                          html  
    detrend                                 html  
    plot.spatmca                            html  
    plot_cv_field                           html  
    plot_sequentially                       html  
    setCores                                html  
    spatmca                                 html  
    spatmcacv_rcpp                          html  
    spatmcacvall_rcpp                       html  
    tpm2                                    html  
** 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 (SpatMCA)