* installing *source* package ‘greed’ ...
** package ‘greed’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++11
using SDK: ‘MacOSX11.3.sdk’
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c CombinedIclModel.cpp -o CombinedIclModel.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c DcLbm.cpp -o DcLbm.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c DcSbm.cpp -o DcSbm.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c DcSbmUndirected.cpp -o DcSbmUndirected.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c DiagGmm.cpp -o DiagGmm.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c Fit.cpp -o Fit.o
Fit.cpp:176:7: warning: unused variable 'N' [-Wunused-variable]
  int N = clr.n_elem;
      ^
Fit.cpp:189:8: warning: variable 'M' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
    if(model.is("DlvmPrior")){
       ^~~~~~~~~~~~~~~~~~~~~
Fit.cpp:207:10: note: uninitialized use occurs here
  return M;
         ^
Fit.cpp:189:5: note: remove the 'if' if its condition is always true
    if(model.is("DlvmPrior")){
    ^~~~~~~~~~~~~~~~~~~~~~~~~
Fit.cpp:179:15: note: initialize the variable 'M' to silence this warning
  IclModel * M;
              ^
               = nullptr
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c Gmm.cpp -o Gmm.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c IclModel.cpp -o IclModel.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c Lca.cpp -o Lca.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c MergeMat.cpp -o MergeMat.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c Mm.cpp -o Mm.o
IclModel.cpp:101:7: warning: variable 'nbmove' set but not used [-Wunused-but-set-variable]
  int nbmove = 0;
      ^
IclModel.cpp:326:7: warning: variable 'nbmerge' set but not used [-Wunused-but-set-variable]
  int nbmerge = 0;
      ^
IclModel.cpp:391:7: warning: variable 'nbmerge' set but not used [-Wunused-but-set-variable]
  int nbmerge = 0;
      ^
IclModel.cpp:436:7: warning: variable 'nbmerge' set but not used [-Wunused-but-set-variable]
  int nbmerge = 0;
      ^
2 warnings generated.
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c Mregs.cpp -o Mregs.o
In file included from Gmm.cpp:5:
./Gmm.h:27:10: warning: private field 'normfact' is not used [-Wunused-private-field]
  double normfact;
         ^
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c MultSbm.cpp -o MultSbm.o
1 warning generated.
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c MultSbmUndirected.cpp -o MultSbmUndirected.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c RcppExports.cpp -o RcppExports.o
4 warnings generated.
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c Sbm.cpp -o Sbm.o
MultSbm.cpp:194:7: warning: unused variable 'cc' [-Wunused-variable]
  int cc, cc_old;
      ^
MultSbm.cpp:194:11: warning: unused variable 'cc_old' [-Wunused-variable]
  int cc, cc_old;
          ^
MultSbm.cpp:195:10: warning: unused variable 'oxc' [-Wunused-variable]
  double oxc,xc;
         ^
MultSbm.cpp:195:14: warning: unused variable 'xc' [-Wunused-variable]
  double oxc,xc;
             ^
MultSbmUndirected.cpp:33:7: warning: unused variable 'cc' [-Wunused-variable]
  int cc = 0;
      ^
MultSbmUndirected.cpp:72:7: warning: unused variable 'cc' [-Wunused-variable]
  int cc, cc_old;
      ^
MultSbmUndirected.cpp:72:11: warning: unused variable 'cc_old' [-Wunused-variable]
  int cc, cc_old;
          ^
MultSbmUndirected.cpp:73:10: warning: unused variable 'oxc' [-Wunused-variable]
  double oxc,xc;
         ^
MultSbmUndirected.cpp:73:14: warning: unused variable 'xc' [-Wunused-variable]
  double oxc,xc;
             ^
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c SbmUndirected.cpp -o SbmUndirected.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c SimpleIclCoModel.cpp -o SimpleIclCoModel.o
5 warnings generated.
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c SimpleIclModel.cpp -o SimpleIclModel.o
4 warnings generated.
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c SpMergeMat.cpp -o SpMergeMat.o
clang++ -arch x86_64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.4/RcppArmadillo/include' -I/opt/R/x86_64/include     -fPIC  -falign-functions=64 -Wall -g -O2   -c gicl_tools.cpp -o gicl_tools.o
SimpleIclCoModel.cpp:156:7: warning: unused variable 'cd' [-Wunused-variable]
  int cd = 0;
      ^
1 warning generated.
gicl_tools.cpp:420:21: warning: unused variable 'm' [-Wunused-variable]
  int n = X.n_rows, m = X.n_cols, d=Y.n_cols;
                    ^
gicl_tools.cpp:458:7: warning: unused variable 'm' [-Wunused-variable]
  int m = X.n_cols, d=Y.n_cols;
      ^
gicl_tools.cpp:493:7: warning: unused variable 'm' [-Wunused-variable]
  int m = X.n_cols, d=Y.n_cols;
      ^
gicl_tools.cpp:531:7: warning: unused variable 'm' [-Wunused-variable]
  int m = as<arma::mat>(current1["S"]).n_cols, d=as<arma::mat>(current1["Yty"]).n_cols;
      ^
gicl_tools.cpp:765:10: warning: unused variable 'd' [-Wunused-variable]
  double d = m1.n_cols;
         ^
5 warnings generated.
clang++ -arch x86_64 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o greed.so CombinedIclModel.o DcLbm.o DcSbm.o DcSbmUndirected.o DiagGmm.o Fit.o Gmm.o IclModel.o Lca.o MergeMat.o Mm.o Mregs.o MultSbm.o MultSbmUndirected.o RcppExports.o Sbm.o SbmUndirected.o SimpleIclCoModel.o SimpleIclModel.o SpMergeMat.o gicl_tools.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0 -L/opt/gfortran/lib -lgfortran -lquadmath -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Volumes/Builds/packages/big-sur-x86_64/results/4.4/greed.Rcheck/00LOCK-greed/00new/greed/libs
** generating debug symbols (dSYM)
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Creating a new generic function for ‘reorder’ in package ‘greed’
** help
*** installing help indices
*** copying figures
** 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 (greed)