* installing *source* package ‘MRS’ ...
** package ‘MRS’ 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 SDK: ‘MacOSX11.3.sdk’
clang++ -arch x86_64 -std=gnu++17 -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
clang++ -arch x86_64 -std=gnu++17 -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 helpers.cpp -o helpers.o
clang++ -arch x86_64 -std=gnu++17 -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 main.cpp -o main.o
clang++ -arch x86_64 -std=gnu++17 -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 recursion.cpp -o recursion.o
helpers.cpp:108:9: warning: variable 'x_curr' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
    if (level == 0) 
        ^~~~~~~~~~
helpers.cpp:117:8: note: uninitialized use occurs here
    if(x_curr != data)
       ^~~~~~
helpers.cpp:108:5: note: remove the 'if' if its condition is always false
    if (level == 0) 
    ^~~~~~~~~~~~~~~~
helpers.cpp:103:15: note: initialize the variable 'x_curr' to silence this warning
    int x_curr;
              ^
               = 0
helpers.cpp:275:8: warning: variable 'foundSol' set but not used [-Wunused-but-set-variable]
  bool foundSol = false;
       ^
recursion.cpp:299:10: warning: unused variable 'row' [-Wunused-variable]
  uword  row, col, slice;
         ^
recursion.cpp:299:15: warning: unused variable 'col' [-Wunused-variable]
  uword  row, col, slice;
              ^
recursion.cpp:818:18: warning: unused variable 'max_val' [-Wunused-variable]
          double max_val = loglike.max(state_star);          
                 ^
helpers.cpp:12:14: warning: unused variable 'log2pi' [-Wunused-const-variable]
const double log2pi = std::log(2.0 * M_PI);
             ^
3 warnings generated.
3 warnings generated.
clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o MRS.so RcppExports.o helpers.o main.o recursion.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/MRS.Rcheck/00LOCK-MRS/00new/MRS/libs
** generating debug symbols (dSYM)
** 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)