* installing *source* package ‘rts2’ ...
** this is package ‘rts2’ version ‘1.0.2’
** package ‘rts2’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
specified C++17
using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’
using C++17
using SDK: ‘MacOSX11.3.1.sdk’


clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"../inst/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error -DUSE_STANC3 -D_HAS_AUTO_PTR_ETC=0 -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/BH/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include' -I/opt/R/x86_64/include    -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS   -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"../inst/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error -DUSE_STANC3 -D_HAS_AUTO_PTR_ETC=0 -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/BH/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include' -I/opt/R/x86_64/include    -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS   -fPIC  -falign-functions=64 -Wall -g -O2   -c region_model.cpp -o region_model.o


clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"../inst/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error -DUSE_STANC3 -D_HAS_AUTO_PTR_ETC=0 -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/BH/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include' -I/opt/R/x86_64/include    -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS   -fPIC  -falign-functions=64 -Wall -g -O2   -c stanExports_rtsbayes.cc -o stanExports_rtsbayes.o


In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
      Index count = 0;
            ^
In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
  Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
        ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
  Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
        ^
In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                        Index replacements = 0;
                              ^
In file included from RcppExports.cpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:37:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
  int count = 0;
      ^
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"../inst/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/src" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG -DBOOST_MATH_OVERFLOW_ERROR_POLICY=errno_on_error -DUSE_STANC3 -D_HAS_AUTO_PTR_ETC=0 -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/BH/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include' -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include' -I/opt/R/x86_64/include    -I'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS   -fPIC  -falign-functions=64 -Wall -g -O2   -c stanExports_rtslgcp_region.cc -o stanExports_rtslgcp_region.o
In file included from region_model.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/general.h:10:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
      Index count = 0;
            ^
In file included from region_model.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/general.h:10:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
  Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
        ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
  Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
        ^
In file included from region_model.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/general.h:10:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                        Index replacements = 0;
                              ^
In file included from region_model.cpp:1:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/general.h:10:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:37:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
  int count = 0;
      ^
In file included from region_model.cpp:1:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/general.h:21:9: warning: 'EIGEN_DEFAULT_DENSE_INDEX_TYPE' macro redefined [-Wmacro-redefined]
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
        ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/Core/util/Macros.h:33:9: note: previous definition is here
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE std::ptrdiff_t
        ^
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:3:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
      Index count = 0;
            ^
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:3:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
  Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
        ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
  Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
        ^
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:21:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/io/r_ostream.hpp:47:31: warning: 'rstan::io::r_cout_streambuf::xsputn' hides overloaded virtual function [-Woverloaded-virtual]
      virtual std::streamsize xsputn(const char_type* s, int n) {
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/streambuf:291:24: note: hidden overloaded virtual function 'std::basic_streambuf<char>::xsputn' declared here: type mismatch at 2nd parameter ('std::streamsize' (aka 'long') vs 'int')
    virtual streamsize xsputn(const char_type* __s, streamsize __n);
                       ^
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:21:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/io/r_ostream.hpp:70:31: warning: 'rstan::io::r_cerr_streambuf::xsputn' hides overloaded virtual function [-Woverloaded-virtual]
      virtual std::streamsize xsputn(const char_type* s, int n) {
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/streambuf:291:24: note: hidden overloaded virtual function 'std::basic_streambuf<char>::xsputn' declared here: type mismatch at 2nd parameter ('std::streamsize' (aka 'long') vs 'int')
    virtual streamsize xsputn(const char_type* __s, streamsize __n);
                       ^
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                        Index replacements = 0;
                              ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:3:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:26:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseCore:61:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
      Index count = 0;
            ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:3:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/Sparse:29:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/SparseLU:35:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
  Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
        ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
  Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
        ^
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:37:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
  int count = 0;
      ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:21:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/io/r_ostream.hpp:47:31: warning: 'rstan::io::r_cout_streambuf::xsputn' hides overloaded virtual function [-Woverloaded-virtual]
      virtual std::streamsize xsputn(const char_type* s, int n) {
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/streambuf:291:24: note: hidden overloaded virtual function 'std::basic_streambuf<char>::xsputn' declared here: type mismatch at 2nd parameter ('std::streamsize' (aka 'long') vs 'int')
    virtual streamsize xsputn(const char_type* __s, streamsize __n);
                       ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:21:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/io/r_ostream.hpp:70:31: warning: 'rstan::io::r_cerr_streambuf::xsputn' hides overloaded virtual function [-Woverloaded-virtual]
      virtual std::streamsize xsputn(const char_type* s, int n) {
                              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/streambuf:291:24: note: hidden overloaded virtual function 'std::basic_streambuf<char>::xsputn' declared here: type mismatch at 2nd parameter ('std::streamsize' (aka 'long') vs 'int')
    virtual streamsize xsputn(const char_type* __s, streamsize __n);
                       ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                        Index replacements = 0;
                              ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:31:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigen.h:25:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/RcppEigenForward.h:37:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
  int count = 0;
      ^
5 warnings generated.
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:43:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/src/stan/io/dump.hpp:7:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim.hpp:14:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun.hpp:35:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:13:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/functor/partials_propagator.hpp:8:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/functor/operands_and_partials.hpp:57:1: warning: 'ops_partials_edge' defined as a struct template here but previously declared as a class template; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
struct ops_partials_edge<ViewElt, Op, require_st_arithmetic<Op>> {
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/functor/operands_and_partials.hpp:45:1: note: did you mean struct here?
class ops_partials_edge;
^~~~~
struct
In file included from region_model.cpp:3:
In file included from ./region_model.h:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/modelbits.hpp:3:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/covariance.hpp:7:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/formula.hpp:6:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/formulaparse.h:12:11: warning: unused variable 'a' [-Wunused-variable]
    float a = std::stod(s);
          ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/formulaparse.h:235:19: warning: variable 'variable_in_data' set but not used [-Wunused-but-set-variable]
  bool add_check, variable_in_data;
                  ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:43:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/src/stan/io/dump.hpp:7:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim.hpp:14:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun.hpp:35:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:13:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/functor/partials_propagator.hpp:8:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/functor/operands_and_partials.hpp:57:1: warning: 'ops_partials_edge' defined as a struct template here but previously declared as a class template; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
struct ops_partials_edge<ViewElt, Op, require_st_arithmetic<Op>> {
^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/StanHeaders/include/stan/math/prim/functor/operands_and_partials.hpp:45:1: note: did you mean struct here?
class ops_partials_edge;
^~~~~
struct
In file included from region_model.cpp:3:
In file included from ./region_model.h:4:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/modelbits.hpp:4:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/hsgpcovariance.hpp:330:14: warning: unused variable 'old_scale' [-Wunused-variable]
      double old_scale = scale_factors_.maxCoeff(); // previous isotropic scale
             ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/hsgpcovariance.hpp:347:12: warning: unused variable 'old_scale_0' [-Wunused-variable]
    double old_scale_0 = scale_factors_(0); // any dim, since about to go isotropic
           ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/hsgpcovariance.hpp:422:10: warning: unused variable 'sigma2' [-Wunused-variable]
  double sigma2 = logpars ? exp(parameters_[0]) : parameters_[0];
         ^
In file included from region_model.cpp:3:
./region_model.h:103:84: error: no member named 'spdeCovariance' in namespace 'glmmr'
  template <typename C = cov, typename = std::enable_if_t<std::is_same_v<C, glmmr::spdeCovariance> > >
                                                                            ~~~~~~~^
region_model.cpp:159:41: error: no member named 'spdeCovariance' in namespace 'glmmr'
inline MatrixXd rts::regionModel<glmmr::spdeCovariance>::information_matrix(bool monte_carlo)
                                 ~~~~~~~^
region_model.cpp:2194:50: error: expected ';' after expression
    XPtr<rts::regionModel<glmmr::hsgpCovariance>> ptr(xp);
                                                 ^
                                                 ;
region_model.cpp:2194:5: error: use of undeclared identifier 'XPtr'
    XPtr<rts::regionModel<glmmr::hsgpCovariance>> ptr(xp);
    ^
region_model.cpp:2194:51: error: use of undeclared identifier 'ptr'; did you mean 'str'?
    XPtr<rts::regionModel<glmmr::hsgpCovariance>> ptr(xp);
                                                  ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/general.h:45:21: note: 'str' declared here
typedef std::string str;
                    ^
region_model.cpp:2195:17: error: use of undeclared identifier 'ptr'
    return wrap(ptr->zu_variance_full());
                ^
region_model.cpp:2197:46: error: expected ';' after expression
    XPtr<rts::regionModel<glmmr::Covariance>> ptr(xp);
                                             ^
                                             ;
region_model.cpp:2197:5: error: use of undeclared identifier 'XPtr'
    XPtr<rts::regionModel<glmmr::Covariance>> ptr(xp);
    ^
region_model.cpp:2197:47: error: use of undeclared identifier 'ptr'; did you mean 'str'?
    XPtr<rts::regionModel<glmmr::Covariance>> ptr(xp);
                                              ^
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/glmmrBase/include/glmmr/general.h:45:21: note: 'str' declared here
typedef std::string str;
                    ^
region_model.cpp:2198:17: error: use of undeclared identifier 'ptr'
    return wrap(ptr->zu_variance_full());
                ^
region_model.cpp:2207:32: error: no member named 'spdeCovariance' in namespace 'glmmr'
  XPtr<rts::regionModel<glmmr::spdeCovariance>> ptr(xp);
                        ~~~~~~~^
region_model.cpp:2208:40: error: use of undeclared identifier 'as'; did you mean 'Rcpp::as'?
  Eigen::SparseMatrix<double> A_pred = as<Eigen::SparseMatrix<double>>(A_pred_);
                                       ^~
                                       Rcpp::as
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/as.h:150:29: note: 'Rcpp::as' declared here
    template <typename T> T as(SEXP x) {
                            ^
region_model.cpp:2208:40: warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Wc++20-extensions]
  Eigen::SparseMatrix<double> A_pred = as<Eigen::SparseMatrix<double>>(A_pred_);
                                       ^
region_model.cpp:2209:39: error: use of undeclared identifier 'as'; did you mean 'Rcpp::as'?
  Eigen::MatrixXd            X_pred = as<Eigen::MatrixXd>(X_pred_);
                                      ^~
                                      Rcpp::as
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/Rcpp/include/Rcpp/as.h:150:29: note: 'Rcpp::as' declared here
    template <typename T> T as(SEXP x) {
                            ^
region_model.cpp:2209:39: warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Wc++20-extensions]
  Eigen::MatrixXd            X_pred = as<Eigen::MatrixXd>(X_pred_);
                                      ^
region_model.cpp:2210:15: error: use of undeclared identifier 'ptr'
  return wrap(ptr->zu_variance_full(A_pred, X_pred));
              ^
region_model.cpp:2247:40: error: no member named 'spdeCovariance' in namespace 'glmmr'
    Rcpp::XPtr<rts::regionModel<glmmr::spdeCovariance>> ptr(xp);
                                ~~~~~~~^
region_model.cpp:2268:40: error: no member named 'spdeCovariance' in namespace 'glmmr'
    Rcpp::XPtr<rts::regionModel<glmmr::spdeCovariance>> ptr(xp);
                                ~~~~~~~^
region_model.cpp:2285:40: error: no member named 'spdeCovariance' in namespace 'glmmr'
    Rcpp::XPtr<rts::regionModel<glmmr::spdeCovariance>> ptr(xp);
                                ~~~~~~~^
region_model.cpp:2302:40: error: no member named 'spdeCovariance' in namespace 'glmmr'
    Rcpp::XPtr<rts::regionModel<glmmr::spdeCovariance>> ptr(xp);
                                ~~~~~~~^
region_model.cpp:2319:40: error: no member named 'spdeCovariance' in namespace 'glmmr'
    Rcpp::XPtr<rts::regionModel<glmmr::spdeCovariance>> ptr(xp);
                                ~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
13 warnings and 20 errors generated.
make: *** [region_model.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from stanExports_rtsbayes.cc:5:
In file included from ./stanExports_rtsbayes.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:1252:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    int ret = stan::services::error_codes::CONFIG;
        ^
In file included from stanExports_rtsbayes.cc:5:
./stanExports_rtsbayes.h:2613:11: warning: variable 'pos__' set but not used [-Wunused-but-set-variable]
      int pos__ = std::numeric_limits<int>::min();
          ^
In file included from stanExports_rtslgcp_region.cc:5:
In file included from ./stanExports_rtslgcp_region.h:23:
In file included from /Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/rstaninc.hpp:4:
/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.6/rstan/include/rstan/stan_fit.hpp:1252:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    int ret = stan::services::error_codes::CONFIG;
        ^
In file included from stanExports_rtslgcp_region.cc:5:
./stanExports_rtslgcp_region.h:1343:11: warning: variable 'pos__' set but not used [-Wunused-but-set-variable]
      int pos__ = std::numeric_limits<int>::min();
          ^
10 warnings generated.
10 warnings generated.
ERROR: compilation failed for package ‘rts2’
* removing ‘/Volumes/Builds/packages/big-sur-x86_64/results/4.6/rts2.Rcheck/rts2’