Error(s) in re-building vignettes:
--- re-building ‘stanmath.Rmd’ using rmarkdown
using C++ compiler: ‘clang version 16.0.4’
using C++17
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:540:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:2:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/LU:47:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Cholesky:12:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Jacobi:29:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Cholesky:43:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:4:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/QR:15:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Householder:27:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:4:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/QR:48:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:5:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/SVD:48:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:6:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Geometry:58:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:7:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Eigenvalues:58:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Sparse:26:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/SparseCore:61:
/data/gannet/ripley/R/test-clang/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 file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Sparse:26:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/SparseCore:66:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Sparse:27:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/OrderingMethods:71:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Sparse:29:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/SparseCholesky:43:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Sparse:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/SparseLU:33:
/data/gannet/ripley/R/test-clang/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 
        ^
/data/gannet/ripley/R/test-clang/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 file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Sparse:32:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/SparseQR:34:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:31:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Sparse:33:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/IterativeLinearSolvers:46:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:32:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/CholmodSupport:45:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:35:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:39:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/unsupported/Eigen/Polynomials:135:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:40:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/unsupported/Eigen/SparseExtra:44:
/data/gannet/ripley/R/test-clang/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
  int count = 0;
      ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:40:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/unsupported/Eigen/SparseExtra:51:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
                             ^
In file included from file2e8d25815c771.cpp:8:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err.hpp:8:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err/check_cholesky_factor_corr.hpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err/check_unit_vector.hpp:9:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/abs.hpp:5:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/hypot.hpp:5:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_binary.hpp:9:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err/check_matching_dims.hpp:33:8: warning: unused variable 'error' [-Wunused-variable]
  bool error = false;
       ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE> (const double &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const ArrayWrapper<Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>, const CwiseNullaryOp<scalar_constant_op<double>, Array<double, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err/check_pos_definite.hpp:47:38: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>' requested here
      || (cholesky.vectorD().array() <= 0.0).any()) {
                                     ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE> (const double &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT> (const double &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const ArrayWrapper<Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>, const CwiseNullaryOp<scalar_constant_op<double>, Array<double, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err/check_pos_semidefinite.hpp:46:38: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1, 0>>>' requested here
      || (cholesky.vectorD().array() < 0.0).any()) {
                                     ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT> (const double &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:8:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err.hpp:50:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/err/hmm_check.hpp:33:7: warning: unused variable 'n_transitions' [-Wunused-variable]
  int n_transitions = log_omegas.cols() - 1;
      ^
In file included from file2e8d25815c771.cpp:9:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun.hpp:118:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/gp_matern52_cov.hpp:275:10: warning: unused variable 'neg_root_5' [-Wunused-variable]
  double neg_root_5 = -root_5;
         ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_difference_op<int, double> (const int &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const CwiseNullaryOp<linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Array<double, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/lmgamma.hpp:58:37: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>' requested here
  return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
                                    ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_difference_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_quotient_op<double, int> (const double &, const int &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_quotient_op<double, int> (const double &, const int &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_quotient_op<double, int>, const CwiseBinaryOp<scalar_difference_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const CwiseNullaryOp<linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Array<double, -1, 1, 0, -1, 1>>>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/lmgamma.hpp:58:75: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double, int>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1, 0>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>' requested here
  return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
                                                                          ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_quotient_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:9:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun.hpp:183:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/log_mix.hpp:86:13: warning: unused variable 'N' [-Wunused-variable]
  const int N = stan::math::size(theta);
            ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_product_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_product_op<double> (const double &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0>>, const Eigen::Matrix<double, -1, -1, 0>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_product_op<double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Matrix<double, -1, -1, 0, -1, -1>>, const Matrix<double, -1, -1, 0, -1, -1>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_product_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0>>, const Eigen::Matrix<double, -1, -1, 0>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/matrix_exp_action_handler.hpp:71:19: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0>>, const Eigen::Matrix<double, -1, -1, 0>>' requested here
            B = t * A * B / (s * j);
                  ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_product_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_difference_op<double> (const double &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Matrix<double, -1, 1, 0>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<double, double>, const Matrix<double, -1, 1, 0, -1, 1>, const Matrix<double, -1, 1, 0, -1, 1>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Matrix<double, -1, 1, 0>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/welford_covar_estimator.hpp:26:29: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Matrix<double, -1, 1, 0>>' requested here
    Eigen::VectorXd delta(q - m_);
                            ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_difference_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_quotient_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_quotient_op<double> (const double &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_quotient_op<double, double>, const Matrix<double, -1, 1, 0, -1, 1>, const CwiseNullaryOp<scalar_constant_op<double>, const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_quotient_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/welford_covar_estimator.hpp:27:17: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0>>>' requested here
    m_ += delta / num_samples_;
                ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_quotient_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/conversion.hpp:17:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/conversion_impl.hpp:20:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/heterogeneous_system.hpp:34:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/static_rational.hpp:166:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/conversion.hpp:17:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/conversion_impl.hpp:20:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/heterogeneous_system.hpp:35:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/dimension.hpp:21:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/dimension_list.hpp:125:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/conversion.hpp:17:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/conversion_impl.hpp:20:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/heterogeneous_system.hpp:35:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/dimension.hpp:21:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/dimension_list.hpp:131:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/dimensionless_type.hpp:49:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/conversion.hpp:17:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/conversion_impl.hpp:20:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/heterogeneous_system.hpp:39:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/linear_algebra.hpp:20:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/dim.hpp:75:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/conversion.hpp:17:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/conversion_impl.hpp:20:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/heterogeneous_system.hpp:40:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/unscale.hpp:28:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/scale.hpp:139:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/conversion.hpp:17:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/conversion_impl.hpp:20:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/heterogeneous_system.hpp:120:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:29:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/conversion.hpp:17:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/units/detail/conversion_impl.hpp:21:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/homogeneous_system.hpp:99:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:25:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
/data/gannet/ripley/R/test-clang/BH/include/boost/units/quantity.hpp:495:10: warning: extension used [-Wlanguage-extension-token]
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
         ^
/data/gannet/ripley/R/test-clang/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     <boost/typeof/incr_registration_group.hpp>
            ^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:63:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array.hpp:34:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array/multi_array_ref.hpp:32:
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: error: no member named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
            using std::unary_function;
                  ~~~~~^~~~~~~~~~~~~~
                       __unary_function
/usr/local/clang16/bin/../include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:63:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array.hpp:34:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array/multi_array_ref.hpp:32:
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: error: no member named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
            using std::binary_function;
                  ~~~~~^~~~~~~~~~~~~~~
                       __binary_function
/usr/local/clang16/bin/../include/c++/v1/__functional/binary_function.h:49:1: note: '__binary_function' declared here
using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;
^
In file included from file2e8d25815c771.cpp:10:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor.hpp:16:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:63:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array.hpp:34:
In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array/multi_array_ref.hpp:32:
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:180:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
        : public boost::functional::detail::unary_function<typename unary_traits<Predicate>::argument_type,bool>
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                            __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:214:45: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
        : public boost::functional::detail::binary_function<
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                            __binary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:252:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
        : public boost::functional::detail::unary_function<
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                            __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:299:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
        : public boost::functional::detail::unary_function<
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                            __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:345:57: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class mem_fun_t : public boost::functional::detail::unary_function<T*, S>
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                        __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:361:58: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class mem_fun1_t : public boost::functional::detail::binary_function<T*, A, S>
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                         __binary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:377:63: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class const_mem_fun_t : public boost::functional::detail::unary_function<const T*, S>
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                              __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:393:64: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class const_mem_fun1_t : public boost::functional::detail::binary_function<const T*, A, S>
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                               __binary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:438:61: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class mem_fun_ref_t : public boost::functional::detail::unary_function<T&, S>
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                            __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:454:62: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class mem_fun1_ref_t : public boost::functional::detail::binary_function<T&, A, S>
                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                             __binary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:470:67: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class const_mem_fun_ref_t : public boost::functional::detail::unary_function<const T&, S>
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                  __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:487:68: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class const_mem_fun1_ref_t : public boost::functional::detail::binary_function<const T&, A, S>
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                   __binary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:533:73: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
    class pointer_to_unary_function : public boost::functional::detail::unary_function<Arg,Result>
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                        __unary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
            using std::unary_function;
                       ^
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:557:74: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
    class pointer_to_binary_function : public boost::functional::detail::binary_function<Arg1,Arg2,Result>
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                         __binary_function
/data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
            using std::binary_function;
                       ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_exp_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_exp_op<double> (const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_exp_op<double>, const CwiseBinaryOp<scalar_difference_op<double, double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>, const CwiseNullaryOp<scalar_constant_op<double>, const Array<double, -1, 1, 0, -1, 1>>>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/log_sum_exp.hpp:90:49: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1, 0>>>>' requested here
    return max + std::log((v_ref.array() - max).exp().sum());
                                                ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:103:12: note: in instantiation of function template specialization 'stan::math::log_sum_exp(const Eigen::Matrix<double, -1, 1, 0> &)::(anonymous class)::operator()<Eigen::Matrix<double, -1, 1, 0>>' requested here
    return f(x);
           ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/log_sum_exp.hpp:81:33: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Matrix<double, -1, 1, 0>>::reduce<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/log_sum_exp.hpp:81:43)>' requested here
  return apply_vector_unary<T>::reduce(x, [&](const auto& v) {
                                ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/dirichlet_rng.hpp:59:24: note: in instantiation of function template specialization 'stan::math::log_sum_exp<Eigen::Matrix<double, -1, 1, 0>, nullptr>' requested here
    double log_sum_y = log_sum_exp(log_y);
                       ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_exp_op<double> (const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:11:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/mat.hpp:2:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob.hpp:87:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/double_exponential_cdf.hpp:82:10: warning: unused variable 'N' [-Wunused-variable]
  size_t N = max_size(y, mu, sigma);
         ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sqrt_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sqrt_op<double> (const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_sqrt_op<double>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_sqrt_op<double>, const ArrayWrapper<Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_sqrt_op<double>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/gaussian_dlm_obs_rng.hpp:38:53: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_sqrt_op<double>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>>' requested here
  Eigen::VectorXd stddev = S_ldlt.vectorD().array().sqrt().matrix();
                                                    ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sqrt_op<double> (const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sum_op<double> (const double &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Product<Eigen::Transpose<Eigen::TranspositionsBase<Eigen::Transpositions<-1>>>, Eigen::Product<Eigen::TriangularView<const Eigen::Matrix<double, -1, -1, 0>, 5>, Eigen::Matrix<double, -1, 1, 0>>, 2>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_op<double, double>, const Matrix<double, -1, 1, 0, -1, 1>, const Product<Transpose<TranspositionsBase<Transpositions<-1, -1, int>>>, Product<TriangularView<const Matrix<double, -1, -1, 0, -1, -1>, 5>, Matrix<double, -1, 1, 0, -1, 1>, 0>, 2>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Product<Eigen::Transpose<Eigen::TranspositionsBase<Eigen::Transpositions<-1>>>, Eigen::Product<Eigen::TriangularView<const Eigen::Matrix<double, -1, -1, 0>, 5>, Eigen::Matrix<double, -1, 1, 0>>, 2>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/gaussian_dlm_obs_rng.hpp:46:12: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Matrix<double, -1, 1, 0>, const Eigen::Product<Eigen::Transpose<Eigen::TranspositionsBase<Eigen::Transpositions<-1>>>, Eigen::Product<Eigen::TriangularView<const Eigen::Matrix<double, -1, -1, 0>, 5>, Eigen::Matrix<double, -1, 1, 0>>, 2>>' requested here
      = mu + (S_ldlt.transpositionsP().transpose() * (S_ldlt.matrixL() * z));
           ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sum_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:11:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/mat.hpp:2:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob.hpp:128:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/gaussian_dlm_obs_rng.hpp:98:7: warning: unused variable 'n' [-Wunused-variable]
  int n = G.rows();  // number of states
      ^
In file included from file2e8d25815c771.cpp:11:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/mat.hpp:2:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob.hpp:139:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/hmm_marginal.hpp:26:13: warning: unused variable 'n_states' [-Wunused-variable]
  const int n_states = omegas.rows();
            ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_inverse_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_inverse_op<double> (const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_inverse_op<double>, const ArrayWrapper<Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_inverse_op<double>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/matrix_normal_prec_rng.hpp:89:38: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::ArrayWrapper<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1, 0>>>>' requested here
      = Sigma_ldlt.vectorD().array().inverse().sqrt().matrix();
                                     ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_inverse_op<double> (const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<int> (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sum_op<int> (const int &, const int &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_op<int, int>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Map<const Array<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/multinomial_logit_lpmf.hpp:39:47: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>' requested here
    lp += lgamma(1 + ns_map.sum()) - lgamma(1 + ns_map).sum();
                                              ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sum_op<int> (const int &, const int &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20) (const int &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20) (const int &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const CwiseBinaryOp<scalar_sum_op<int, int>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Map<const Array<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:10: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>' requested here
        .unaryExpr([](scalar_t x) {
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:89:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>::apply' requested here
      apply_scalar_unary<F, T>::apply(std::declval<T>()).eval())>;
                                ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/lgamma.hpp:120:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>>' requested here
  return apply_scalar_unary<lgamma_fun, T>::apply(x);
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/multinomial_logit_lpmf.hpp:39:38: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Map<const Eigen::Array<int, -1, 1, 0>>>, nullptr>' requested here
    lp += lgamma(1 + ns_map.sum()) - lgamma(1 + ns_map).sum();
                                     ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20) (const int &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_opposite_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_opposite_op<double> (const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::Array<double, -1, 1, 0>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_opposite_op<double>, const Array<double, -1, 1, 0, -1, 1>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_opposite_op<double>, const Eigen::Array<double, -1, 1, 0>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:130:29: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::Array<double, -1, 1, 0>>' requested here
      = (cut1 > 0.0).select(-cut1, 0) - (-cut1.abs()).exp().log1p();
                            ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_opposite_op<double> (const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_abs_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_abs_op<double> (const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_abs_op<double>, const Array<double, -1, 1, 0, -1, 1>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:130:48: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>' requested here
      = (cut1 > 0.0).select(-cut1, 0) - (-cut1.abs()).exp().log1p();
                                               ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_abs_op<double> (const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_log1p_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_log1p_op<double> (const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_log1p_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_log1p_op<double>, const CwiseUnaryOp<scalar_exp_op<double>, const CwiseUnaryOp<scalar_opposite_op<double>, const CwiseUnaryOp<scalar_abs_op<double>, const Array<double, -1, 1, 0, -1, 1>>>>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_log1p_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:130:61: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_log1p_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op<double>, const Eigen::Array<double, -1, 1, 0>>>>>' requested here
      = (cut1 > 0.0).select(-cut1, 0) - (-cut1.abs()).exp().log1p();
                                                            ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_log1p_op<double> (const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ> (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ> (const int &, const int &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>, const CwiseNullaryOp<scalar_constant_op<int>, Matrix<int, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:138:18: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ>, const Eigen::Map<const Eigen::Matrix<int, -1, 1, 0>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1, 0>>>' requested here
    logp = y_vec.cwiseEqual(1)
                 ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ> (const int &, const int &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20) (const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20) (const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const CwiseBinaryOp<scalar_difference_op<double, double>, const Array<double, -1, 1, 0, -1, 1>, const Array<double, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
                            ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:10: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>' requested here
        .unaryExpr([](scalar_t x) {
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:89:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>::apply' requested here
      apply_scalar_unary<F, T>::apply(std::declval<T>()).eval())>;
                                ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/fun/log1m_exp.hpp:83:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>>' requested here
  return apply_scalar_unary<log1m_exp_fun, T>::apply(x);
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:142:50: note: in instantiation of function template specialization 'stan::math::log1m_exp<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1, 0>, const Eigen::Array<double, -1, 1, 0>>, nullptr>' requested here
                           m_log_1p_exp_m_cut2 + log1m_exp(cut1 - cut2).array()
                                                 ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<(lambda at /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:74:20) (const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_sum_op<int, double> (const int &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Array<double, -1, 1, 0, -1, 1>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:164:45: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>' requested here
        = (cut2 > 0).select(exp_m_cut2 / (1 + exp_m_cut2), 1 / (1 + exp(cut2)))
                                            ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_sum_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<double, int> (const double &, const int &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_difference_op<double, int> (const double &, const int &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<double, int>, const Array<double, -1, 1, 0, -1, 1>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:165:44: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, int>, const Eigen::Array<double, -1, 1, 0>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>>' requested here
          - exp_cuts_diff / (exp_cuts_diff - 1);
                                           ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_difference_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:3:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigen.h:25:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/RcppEigenForward.h:30:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Dense:1:
In file included from /data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/Core:367:
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_quotient_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
  typedef typename std::result_of<T>::type type1;
                        ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_quotient_op<int, double> (const int &, const double &)>' requested here
  typedef typename result_of<
                   ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>>>' requested here
template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
                                                       ^
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_quotient_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const CwiseBinaryOp<scalar_difference_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const Array<double, -1, 1, 0, -1, 1>>>>' required here
  : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/data/gannet/ripley/R/test-clang/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_quotient_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>, Eigen::Dense>' requested here
  public CwiseBinaryOpImpl<
         ^
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/ordered_logistic_glm_lpmf.hpp:167:13: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_quotient_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1, 0>>, const Eigen::Array<double, -1, 1, 0>>>' requested here
        = 1 / (1 - exp_cuts_diff)
            ^
/usr/local/clang16/bin/../include/c++/v1/__type_traits/result_of.h:24:34: note: 'result_of<Eigen::internal::scalar_quotient_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
template <class _Callable> class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
                                 ^
/usr/local/clang16/bin/../include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
#    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
                                        ^
/usr/local/clang16/bin/../include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
#      define _LIBCPP_DEPRECATED __attribute__((deprecated))
                                                ^
In file included from file2e8d25815c771.cpp:11:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/mat.hpp:2:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob.hpp:315:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/std_normal_rng.hpp:23:22: warning: unused variable 'function' [-Wunused-variable]
  static const char* function = "std_normal_rng";
                     ^
In file included from file2e8d25815c771.cpp:11:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/mat.hpp:2:
In file included from /data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob.hpp:335:
/data/gannet/ripley/R/packages/tests-clang/StanHeaders.Rcheck/StanHeaders/include/stan/math/prim/prob/von_mises_cdf.hpp:72:10: warning: unused variable 'ck' [-Wunused-variable]
  double ck = 50;
         ^
60 warnings and 16 errors generated.
make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:198: file2e8d25815c771.o] Error 1

Quitting from lines 67-68 [unnamed-chunk-1] (stanmath.Rmd)
Error: processing vignette 'stanmath.Rmd' failed with diagnostics:
Error 1 occurred building shared library.
--- failed re-building ‘stanmath.Rmd’

SUMMARY: processing the following file failed:
  ‘stanmath.Rmd’

Error: Vignette re-building failed.
Execution halted