* installing *source* package ‘factorana’ ...
** this is package ‘factorana’ version ‘1.2.0’
** package ‘factorana’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘g++ (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7)’
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/factorana/src'
g++ -std=gnu++20 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/include' -I/usr/local/include   -fopenmp -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 FactorModel.cpp -o FactorModel.o
FactorModel.cpp: In member function ‘void FactorModel::SetData(const std::vector<double>&)’:
FactorModel.cpp:173:20: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  173 |     if (dat.size() != nobs * nvar) {
      |         ~~~~~~~~~~~^~~~~~~~~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetObservationWeights(const std::vector<double>&)’:
FactorModel.cpp:201:24: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  201 |     if (weights.size() != nobs) {
      |         ~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetAdaptiveQuadrature(const std::vector<std::vector<double> >&, const std::vector<std::vector<double> >&, const std::vector<double>&, double, int)’:
FactorModel.cpp:217:30: warning: comparison of integer expressions of different signedness: ‘std::vector<std::vector<double> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  217 |     if (factor_scores.size() != nobs) {
      |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp:221:27: warning: comparison of integer expressions of different signedness: ‘std::vector<std::vector<double> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  221 |     if (factor_ses.size() != nobs) {
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp:225:28: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  225 |     if (factor_vars.size() != nfac) {
      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp:245:40: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  245 |         if (factor_scores[iobs].size() != nfac || factor_ses[iobs].size() != nfac) {
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp:245:75: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  245 |         if (factor_scores[iobs].size() != nfac || factor_ses[iobs].size() != nfac) {
      |                                                   ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetFactorMeanCovariates(const std::vector<std::vector<double> >&)’:
FactorModel.cpp:354:31: warning: comparison of integer expressions of different signedness: ‘std::vector<std::vector<double> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  354 |     if (covariate_data.size() != nobs) {
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetSECovariates(const std::vector<std::vector<double> >&)’:
FactorModel.cpp:411:31: warning: comparison of integer expressions of different signedness: ‘std::vector<std::vector<double> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  411 |     if (covariate_data.size() != nobs) {
      |         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetParameterConstraints(const std::vector<bool>&)’:
FactorModel.cpp:438:22: warning: comparison of integer expressions of different signedness: ‘std::vector<bool>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  438 |     if (fixed.size() != nparam) {
      |         ~~~~~~~~~~~~~^~~~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetParameterConstraints(const std::vector<bool>&, const std::vector<double>&)’:
FactorModel.cpp:484:22: warning: comparison of integer expressions of different signedness: ‘std::vector<bool>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  484 |     if (fixed.size() != nparam) {
      |         ~~~~~~~~~~~~~^~~~~~~~~
FactorModel.cpp:487:29: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  487 |     if (fixed_values.size() != nparam) {
      |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetEqualityConstraints(const std::vector<int>&)’:
FactorModel.cpp:530:29: warning: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  530 |     if (equality_map.size() != nparam) {
      |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::MapFreeToFull(const std::vector<double>&)’:
FactorModel.cpp:562:28: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  562 |     if (free_params.size() != nparam_free) {
      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::CalcLkhd(const std::vector<double>&, double&, std::vector<double>&, std::vector<double>&, int)’:
FactorModel.cpp:706:9: warning: unused variable ‘n_integ_dims’ [-Wunused-variable]
  706 |     int n_integ_dims = nfac;  // Default: one dimension per factor
      |         ^~~~~~~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::SetModelParameters(const std::vector<double>&)’:
FactorModel.cpp:3330:23: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
 3330 |     if (params.size() != nparam) {
      |         ~~~~~~~~~~~~~~^~~~~~~~~
FactorModel.cpp: In member function ‘void FactorModel::CalcLkhdSingleObs(int, const std::vector<double>&, const std::vector<double>&, double&, std::vector<double>&, std::vector<double>&, int, bool)’:
FactorModel.cpp:3350:30: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
 3350 |     if (factor_values.size() != nfac) {
      |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
FactorModel.cpp:3353:29: warning: comparison of integer expressions of different signedness: ‘std::vector<double>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
 3353 |     if (model_params.size() != nparam) {
      |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
g++ -std=gnu++20 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/include' -I/usr/local/include   -fopenmp -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 Model.cpp -o Model.o
g++ -std=gnu++20 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/include' -I/usr/local/include   -fopenmp -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++ -std=gnu++20 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/include' -I/usr/local/include   -fopenmp -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 gauss_hermite.cpp -o gauss_hermite.o
g++ -std=gnu++20 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG -DEIGEN_PERMANENTLY_DISABLE_STUPID_WARNINGS -I'/data/gannet/ripley/R/test-dev/Rcpp/include' -I'/data/gannet/ripley/R/test-dev/RcppEigen/include' -I/usr/local/include   -fopenmp -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 rcpp_interface.cpp -o rcpp_interface.o
rcpp_interface.cpp: In function ‘SEXPREC* initialize_factor_model_cpp(Rcpp::List, SEXP, int, Rcpp::Nullable<Rcpp::Vector<14, Rcpp::PreserveStorage> >)’:
rcpp_interface.cpp:794:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  794 |                 for (int k = 0; k < covariate_names.size(); k++) {
      |                                 ~~^~~~~~~~~~~~~~~~~~~~~~~~
rcpp_interface.cpp:816:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  816 |                     for (int k = 0; k < covariate_names.size(); k++) {
      |                                     ~~^~~~~~~~~~~~~~~~~~~~~~~~
rcpp_interface.cpp:1073:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
 1073 |                     for (int j = 0; j < free_loading_indices.size(); j++) {
      |                                     ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rcpp_interface.cpp:1088:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
 1088 |                 for (int j = 0; j < free_loading_indices.size(); j++) {
      |                                 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rcpp_interface.cpp:927:13: warning: variable ‘n_factors_for_mixture_eq’ set but not used [-Wunused-but-set-variable]
  927 |         int n_factors_for_mixture_eq = n_fac;
      |             ^~~~~~~~~~~~~~~~~~~~~~~~
rcpp_interface.cpp:532:9: warning: variable ‘n_factors_for_mixture’ set but not used [-Wunused-but-set-variable]
  532 |     int n_factors_for_mixture = n_fac;  // Default: all factors have mixture
      |         ^~~~~~~~~~~~~~~~~~~~~
g++ -std=gnu++20 -shared -L/usr/local/lib64 -o factorana.so FactorModel.o Model.o RcppExports.o gauss_hermite.o rcpp_interface.o -fopenmp
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/factorana/src'
make[1]: Entering directory '/data/gannet/ripley/R/packages/tests-devel/factorana/src'
make[1]: Leaving directory '/data/gannet/ripley/R/packages/tests-devel/factorana/src'
installing to /data/gannet/ripley/R/packages/tests-devel/factorana.Rcheck/00LOCK-factorana/00new/factorana/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** 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 (factorana)