CRAN Package Check Results for Package rstanarm

Last updated on 2023-10-02 00:03:39 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.26.1 2403.30 866.71 3270.01 NOTE
r-devel-linux-x86_64-debian-gcc 2.26.1 1765.68 726.23 2491.91 NOTE
r-devel-linux-x86_64-fedora-clang 2.26.1 4641.95 ERROR
r-devel-linux-x86_64-fedora-gcc 2.26.1 2838.45 NOTE
r-devel-windows-x86_64 2.26.1 1484.00 284.00 1768.00 NOTE --no-examples --no-tests --no-vignettes
r-patched-linux-x86_64 2.26.1 1950.92 985.23 2936.15 NOTE
r-release-linux-x86_64 2.26.1 2216.04 984.51 3200.55 NOTE
r-release-macos-arm64 2.26.1 1725.00 NOTE
r-release-macos-x86_64 2.26.1 1746.00 NOTE
r-release-windows-x86_64 2.26.1 1766.00 319.00 2085.00 NOTE --no-examples --no-tests --no-vignettes
r-oldrel-macos-arm64 2.26.1 940.00 NOTE
r-oldrel-macos-x86_64 2.26.1 253.00 ERROR
r-oldrel-windows-x86_64 2.26.1 1666.00 283.00 1949.00 NOTE --no-examples --no-tests --no-vignettes

Additional issues

M1mac

Check Details

Version: 2.26.1
Check: for GNU extensions in Makefiles
Result: NOTE
    GNU make is a SystemRequirements.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64

Version: 2.26.1
Check: installed package size
Result: NOTE
     installed size is 26.4Mb
     sub-directories of 1Mb or more:
     R 1.9Mb
     doc 4.8Mb
     libs 19.0Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-macos-arm64, r-release-macos-x86_64, r-oldrel-macos-arm64

Version: 2.26.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [264s/328s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > # Part of the rstanarm package for estimating model parameters
     > # Copyright (C) 2015 Trustees of Columbia University
     > #
     > # This program is free software; you can redistribute it and/or
     > # modify it under the terms of the GNU General Public License
     > # as published by the Free Software Foundation; either version 3
     > # of the License, or (at your option) any later version.
     > #
     > # This program is distributed in the hope that it will be useful,
     > # but WITHOUT ANY WARRANTY; without even the implied warranty of
     > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     > # GNU General Public License for more details.
     > #
     > # You should have received a copy of the GNU General Public License
     > # along with this program; if not, write to the Free Software
     > # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     >
     > library(testthat)
     > suppressPackageStartupMessages(library(rstanarm))
     > Sys.unsetenv("R_TESTS")
     > o <- utils::capture.output(example(example_model, echo = FALSE))
     > if (.Platform$OS.type != "windows") { # || .Platform$r_arch != "i386"
     + test_check("rstanarm", invert = FALSE,
     + filter = if (Sys.getenv("NOT_CRAN") != "true") "stan_functions")
     + }
     using C++ compiler: ‘clang version 17.0.1’
     using C++17
     make[2]: Entering directory '/tmp/RtmpGbbUPr/working_dir/Rtmpml51UT/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_2fdb1e21b92cc1'
     make[2]: Leaving directory '/tmp/RtmpGbbUPr/working_dir/Rtmpml51UT/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_2fdb1e21b92cc1'
     make[2]: Entering directory '/tmp/RtmpGbbUPr/working_dir/Rtmpml51UT/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_2fdb1e21b92cc1'
     /usr/local/clang17/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-flang/include" -DNDEBUG -I"/data/gannet/ripley/R/test-clang/Rcpp/include/" -I"/tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/" -I"/tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/unsupported" -I"/tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include" -I"/data/gannet/ripley/R/test-clang/StanHeaders/include/src/" -I"/data/gannet/ripley/R/test-clang/StanHeaders/include/" -I"/data/gannet/ripley/R/test-clang/RcppParallel/include/" -I"/data/gannet/ripley/R/test-clang/rstan/include" -DEIGEN_NO_DEBUG -DBOOST_DISABLE_ASSERTS -DBOOST_PENDING_INTEGER_LOG2_HPP -DSTAN_THREADS -DUSE_STANC3 -DSTRICT_R_HEADERS -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION -DBOOST_NO_AUTO_PTR -include '/data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp' -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1 -I"/data/gannet/ripley/R/test-clang/Rcpp/include" -I"/data/gannet/ripley/R/test-clang/StanHeaders/include" -I"/data/gannet/ripley/R/test-clang/rstan/include" -I"/data/gannet/ripley/R/test-clang/RcppEigen/include" -I"/data/gannet/ripley/R/test-clang/BH/include" -I"/tmp/RtmpGbbUPr/working_dir/Rtmpml51UT/sourceCpp-x86_64-pc-linux-gnu-1.0.11" -isystem /usr/local/clang17/include -I/usr/local/clang/include -fpic -O3 -Wall -pedantic -frtti -Wp,-D_FORTIFY_SOURCE=3 -c file2fdb1e13f8016f.cpp -o file2fdb1e13f8016f.o
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:540:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:2:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/LU:47:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:3:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Cholesky:12:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Jacobi:29:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:3:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Cholesky:43:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:4:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/QR:15:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Householder:27:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:4:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/QR:48:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:5:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/SVD:48:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:6:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Geometry:58:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:7:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Eigenvalues:58:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Sparse:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/SparseCore:61:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     273 | Index count = 0;
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Sparse:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/SparseCore:66:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Sparse:27:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/OrderingMethods:71:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Sparse:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/SparseCholesky:43:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Sparse:31:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/SparseLU:33:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
     79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Sparse:32:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/SparseQR:34:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Sparse:33:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/IterativeLinearSolvers:46:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from file2fdb1e13f8016f.cpp:7:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta.hpp:175:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/append_return_type.hpp:5:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/return_type.hpp:5:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/promote_args.hpp:4:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/math/tools/promotion.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/math/tools/config.hpp:28:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/config.hpp:48:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/config/stdlib/libcpp.hpp:98:11: warning: 'BOOST_NO_AUTO_PTR' macro redefined [-Wmacro-redefined]
     98 | # define BOOST_NO_AUTO_PTR
     | ^
     <command line>:9:9: note: previous definition is here
     9 | #define BOOST_NO_AUTO_PTR 1
     | ^
     In file included from file2fdb1e13f8016f.cpp:10:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigen.h:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigenForward.h:32:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/CholmodSupport:45:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from file2fdb1e13f8016f.cpp:10:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigen.h:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigenForward.h:35:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from file2fdb1e13f8016f.cpp:10:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigen.h:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigenForward.h:39:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/unsupported/Eigen/Polynomials:135:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from file2fdb1e13f8016f.cpp:10:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigen.h:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigenForward.h:40:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/unsupported/Eigen/SparseExtra:44:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:239:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     239 | int count = 0;
     | ^
     In file included from file2fdb1e13f8016f.cpp:10:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigen.h:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/RcppEigenForward.h:40:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/unsupported/Eigen/SparseExtra:51:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:14:33: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
     14 | #pragma clang diagnostic pop
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:28:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:6:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err/check_matching_dims.hpp:33:8: warning: unused variable 'error' [-Wunused-variable]
     33 | bool error = false;
     | ^~~~~
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1>>>' requested here
     47 | || (cholesky.vectorD().array() <= 0.0).any()) {
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LE> (const double &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, Eigen::Array<double, -1, 1>>>' requested here
     46 | || (cholesky.vectorD().array() < 0.0).any()) {
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_cmp_op<double, double, Eigen::internal::cmp_LT> (const double &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:54:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/profiling.hpp:9:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err.hpp:50:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/err/hmm_check.hpp:33:7: warning: unused variable 'n_transitions' [-Wunused-variable]
     33 | int n_transitions = log_omegas.cols() - 1;
     | ^~~~~~~~~~~~~
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:7:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun.hpp:118:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/gp_matern52_cov.hpp:275:10: warning: unused variable 'neg_root_5' [-Wunused-variable]
     275 | double neg_root_5 = -root_5;
     | ^~~~~~~~~~
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>' requested here
     58 | return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_difference_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>' requested here
     58 | return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_quotient_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:7:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun.hpp:183:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log_mix.hpp:86:13: warning: unused variable 'N' [-Wunused-variable]
     86 | const int N = stan::math::size(theta);
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::Matrix<double, -1, -1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::Matrix<double, -1, -1>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::Matrix<double, -1, -1>>' requested here
     71 | B = t * A * B / (s * j);
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_product_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, const Eigen::Matrix<double, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, const Eigen::Matrix<double, -1, 1>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>, const Eigen::Matrix<double, -1, 1>>' requested here
     26 | Eigen::VectorXd delta(q - m_);
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_difference_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1>>>' requested here
     27 | m_ += delta / num_samples_;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_quotient_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/conversion.hpp:17:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/conversion_impl.hpp:20:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/heterogeneous_system.hpp:34:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/static_rational.hpp:166:10: warning: extension used [-Wlanguage-extension-token]
     166 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/conversion.hpp:17:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/conversion_impl.hpp:20:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/heterogeneous_system.hpp:35:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/dimension.hpp:21:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/dimension_list.hpp:125:10: warning: extension used [-Wlanguage-extension-token]
     125 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/conversion.hpp:17:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/conversion_impl.hpp:20:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/heterogeneous_system.hpp:35:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/dimension.hpp:21:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/dimension_list.hpp:131:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/dimensionless_type.hpp:49:10: warning: extension used [-Wlanguage-extension-token]
     49 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/conversion.hpp:17:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/conversion_impl.hpp:20:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/heterogeneous_system.hpp:39:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/linear_algebra.hpp:20:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/dim.hpp:75:10: warning: extension used [-Wlanguage-extension-token]
     75 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/conversion.hpp:17:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/conversion_impl.hpp:20:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/heterogeneous_system.hpp:40:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/unscale.hpp:28:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/scale.hpp:139:10: warning: extension used [-Wlanguage-extension-token]
     139 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/conversion.hpp:17:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/conversion_impl.hpp:20:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/heterogeneous_system.hpp:120:10: warning: extension used [-Wlanguage-extension-token]
     120 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:29:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/conversion.hpp:17:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/detail/conversion_impl.hpp:21:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/homogeneous_system.hpp:99:10: warning: extension used [-Wlanguage-extension-token]
     99 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:25:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/ublas_wrapper.hpp:30:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/default_operations.hpp:26:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/util/unit_helper.hpp:23:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/units/quantity.hpp:495:10: warning: extension used [-Wlanguage-extension-token]
     495 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/typeof/typeof.hpp:197:13: note: expanded from macro 'BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP'
     197 | <boost/typeof/incr_registration_group.hpp>
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:63:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/multi_array.hpp:34:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/multi_array/multi_array_ref.hpp:32:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: error: no member named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
     45 | using std::unary_function;
     | ~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /usr/local/clang17/bin/../include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
     46 | using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:63:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/multi_array.hpp:34:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/multi_array/multi_array_ref.hpp:32:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:46:24: error: no member named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
     46 | using std::binary_function;
     | ~~~~~^~~~~~~~~~~~~~~
     | __binary_function
     /usr/local/clang17/bin/../include/c++/v1/__functional/binary_function.h:49:1: note: '__binary_function' declared here
     49 | using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:10:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/integrate_ode_rk45.hpp:6:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/ode_rk45.hpp:9:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint.hpp:63:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/multi_array.hpp:34:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/multi_array/multi_array_ref.hpp:32:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:180:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     180 | : public boost::functional::detail::unary_function<typename unary_traits<Predicate>::argument_type,bool>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:214:45: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
     214 | : public boost::functional::detail::binary_function<
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
     | __binary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
     46 | using std::binary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:252:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     252 | : public boost::functional::detail::unary_function<
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:299:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     299 | : public boost::functional::detail::unary_function<
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:345:57: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     345 | class mem_fun_t : public boost::functional::detail::unary_function<T*, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:361:58: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
     361 | class mem_fun1_t : public boost::functional::detail::binary_function<T*, A, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
     | __binary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
     46 | using std::binary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:377:63: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     377 | class const_mem_fun_t : public boost::functional::detail::unary_function<const T*, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:393:64: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
     393 | class const_mem_fun1_t : public boost::functional::detail::binary_function<const T*, A, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
     | __binary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
     46 | using std::binary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:438:61: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     438 | class mem_fun_ref_t : public boost::functional::detail::unary_function<T&, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:454:62: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
     454 | class mem_fun1_ref_t : public boost::functional::detail::binary_function<T&, A, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
     | __binary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
     46 | using std::binary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:470:67: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     470 | class const_mem_fun_ref_t : public boost::functional::detail::unary_function<const T&, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:487:68: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
     487 | class const_mem_fun1_ref_t : public boost::functional::detail::binary_function<const T&, A, S>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
     | __binary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
     46 | using std::binary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:533:73: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
     533 | class pointer_to_unary_function : public boost::functional::detail::unary_function<Arg,Result>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
     | __unary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
     45 | using std::unary_function;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:557:74: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
     557 | class pointer_to_binary_function : public boost::functional::detail::binary_function<Arg1,Arg2,Result>
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
     | __binary_function
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
     46 | using std::binary_function;
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Transpose<Eigen::Map<Eigen::Matrix<double, -1, -1>>>, const Eigen::Map<Eigen::Matrix<double, -1, -1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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 Transpose<Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>, const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Transpose<Eigen::Map<Eigen::Matrix<double, -1, -1>>>, const Eigen::Map<Eigen::Matrix<double, -1, -1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/multiply_lower_tri_self_transpose.hpp:31:46: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::Transpose<Eigen::Map<Eigen::Matrix<double, -1, -1>>>, const Eigen::Map<Eigen::Matrix<double, -1, -1>>>' requested here
     31 | arena_L.adj() += ((res.adj().transpose() + res.adj())
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/multiply_lower_tri_self_transpose.hpp:30:25: note: while substituting into a lambda expression here
     30 | reverse_pass_callback([res, arena_L, arena_L_val]() mutable {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/cov_matrix_constrain.hpp:59:10: note: in instantiation of function template specialization 'stan::math::multiply_lower_tri_self_transpose<stan::math::var_value<Eigen::Matrix<double, -1, -1>>, nullptr>' requested here
     59 | return multiply_lower_tri_self_transpose(L);
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_sum_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::adj_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::adj_Op (stan::math::vari_value<double> *const &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<adj_Op, Map<Matrix<vari_value<double, void> *, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/divide.hpp:40:31: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>' requested here
     40 | -= invc_ * (adjResult.adj().array() * adjResult.val().array()).sum();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::adj_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::val_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::val_Op (stan::math::vari_value<double> *const &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Map<Matrix<vari_value<double, void> *, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/divide.hpp:40:57: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>' requested here
     40 | -= invc_ * (adjResult.adj().array() * adjResult.val().array()).sum();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, -1>>>::val_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::val_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::val_Op (const stan::math::var_value<double> &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::val_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<val_Op, const Matrix<var_value<double, void>, -1, -1, 0, -1, -1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::val_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:45:12: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::val_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1>>' requested here
     45 | Ad = A.val();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::val_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::vi_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::vi_Op (const stan::math::var_value<double> &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::vi_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<vi_Op, const Matrix<var_value<double, void>, -1, -1, 0, -1, -1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::vi_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:50:45: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::vi_Op, const Eigen::Matrix<stan::math::var_value<double>, -1, -1>>' requested here
     50 | Map<matrix_vi>(vari_ref_A_, M_, M_) = A.vi();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, -1>>::vi_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1>>>' requested here
     52 | = wd.unaryExpr([](double x) { return new vari(x, false); });
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:52:24) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28) (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28) (const stan::math::var_value<double> &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Eigen::Matrix<stan::math::var_value<double>, -1, -1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Matrix<var_value<double, void>, -1, -1, 0, -1, -1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Eigen::Matrix<stan::math::var_value<double>, -1, -1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:18: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28), const Eigen::Matrix<stan::math::var_value<double>, -1, -1>>' requested here
     110 | return m.unaryExpr([](auto x) { return value_of_rec(x); });
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:364:24: note: in instantiation of function template specialization 'stan::math::value_of_rec(const Eigen::Matrix<stan::math::var_value<double>, -1, -1> &)::(anonymous class)::operator()<const Eigen::Matrix<stan::math::var_value<double>, -1, -1>>' requested here
     364 | decltype(std::declval<F>()(std::declval<Args&>()...))>* = nullptr>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:365:6: note: while substituting prior template arguments into non-type template parameter [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:109:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, -1> &>]
     365 | auto make_holder(const F& func, Args&&... args) {
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     366 | return internal::make_holder_impl(func,
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     367 | std::make_index_sequence<sizeof...(Args)>(),
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     368 | std::forward<Args>(args)...);
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     369 | }
     | ~
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:108:10: note: while substituting deduced template arguments into function template 'make_holder' [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:109:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, -1> &>, $2 = (no value)]
     108 | return make_holder(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:83:19: note: in instantiation of function template specialization 'stan::math::value_of_rec<const Eigen::Matrix<stan::math::var_value<double>, -1, -1> &, void, void>' requested here
     83 | matrix_d m_eval(value_of_rec(m));
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of_rec.hpp:110:28) (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::vi_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::vi_Op (const stan::math::var_value<double> &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::vi_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<vi_Op, Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::vi_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:88:7: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::vi_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>>' requested here
     88 | res.vi()
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::vi_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24), const Eigen::Map<Eigen::Matrix<double, -1, -1>>>' requested here
     52 | = vd.unaryExpr([](double x) { return new vari(x, false); });
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvectors_sym.hpp:52:24) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::adj_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::adj_Op (const stan::math::var_value<double> &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::adj_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<adj_Op, Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::adj_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/grad.hpp:27:9: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::adj_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>>' requested here
     27 | g = x.adj();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::adj_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_log_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_log_op<double> (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_log_op<double>, const Eigen::ArrayWrapper<const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_log_op<double>, const ArrayWrapper<const Diagonal<const Matrix<double, -1, -1, 0, -1, -1>, 0>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_log_op<double>, const Eigen::ArrayWrapper<const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log.hpp:66:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_log_op<double>, const Eigen::ArrayWrapper<const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>>>>' requested here
     66 | x, [](const auto& v) { return v.array().log(); });
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::log(const Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>> &)::(anonymous class)::operator()<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>>>' requested here
     48 | f(x));
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log.hpp:65:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log.hpp:66:10), Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>>, nullptr>' requested here
     65 | return apply_vector_unary<Container>::apply(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/log_determinant_spd.hpp:49:20: note: in instantiation of function template specialization 'stan::math::log<Eigen::Diagonal<const Eigen::Matrix<double, -1, -1>>, nullptr>' requested here
     49 | double val = sum(log(ldlt.vectorD()));
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_log_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::ArrayWrapper<Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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 ArrayWrapper<Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::ArrayWrapper<Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/log_softmax.hpp:74:39: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1>>>' requested here
     74 | vector_d softmax_x_d = diff.array().exp();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_exp_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Matrix<double, -1, -1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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 Matrix<double, -1, -1, 0, -1, -1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Matrix<double, -1, -1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/mdivide_left_tri.hpp:85:12: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::Matrix<double, -1, -1>>' requested here
     85 | adjA = -adjB * Map<matrix_d>(C_, M_, N_).transpose();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_opposite_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Block<Eigen::Map<Eigen::Array<double, -1, 1>>, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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 Block<Map<Array<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>, -1, 1, false>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Block<Eigen::Map<Eigen::Array<double, -1, 1>>, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/read_corr_L.hpp:63:58: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_sqrt_op<double>, const Eigen::Block<Eigen::Map<Eigen::Array<double, -1, 1>>, -1, 1>>' requested here
     63 | L.col(i).tail(pull) = cpc_seg * arena_acc.tail(pull).sqrt();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_sqrt_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Map<Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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 Map<Matrix<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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::Map<Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/DiagonalMatrix.h:230:20: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>>>' requested here
     230 | typedef typename DiagonalVectorType::Scalar Scalar;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/EigenBase.h:41:30: note: in instantiation of template class 'Eigen::internal::traits<Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>>>>>' requested here
     41 | typedef typename internal::traits<Derived>::StorageKind StorageKind;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/DiagonalMatrix.h:18:29: note: in instantiation of template class 'Eigen::EigenBase<Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>>>>>' requested here
     18 | class DiagonalBase : public EigenBase<Derived>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/DiagonalMatrix.h:246:12: note: in instantiation of template class 'Eigen::DiagonalBase<Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>>>>>' requested here
     246 | : public DiagonalBase<DiagonalWrapper<_DiagonalVectorType> >, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/svd_U.hpp:63:60: note: in instantiation of template class 'Eigen::DiagonalWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_inverse_op<double>, const Eigen::Map<Eigen::Matrix<double, -1, 1>>>>' requested here
     63 | * arena_U.adj_op() * arena_D.asDiagonal().inverse()
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_inverse_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::val_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::val_Op (stan::math::vari_value<double> *const &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Map<Matrix<vari_value<double, void> *, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/squared_distance.hpp:79:38: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::val_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>' requested here
     79 | vector_d di = 2 * adj_ * (v1_map.val() - v2_map.val());
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::val_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::adj_Op (stan::math::vari_value<double> *const &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::adj_Op (stan::math::vari_value<double> *const &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<adj_Op, Map<Matrix<vari_value<double, void> *, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/squared_distance.hpp:80:12: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::adj_Op, Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>' requested here
     80 | v1_map.adj() += di;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Map<Eigen::Matrix<stan::math::vari_value<double> *, -1, 1>>>::adj_Op (stan::math::vari_value<double> *const &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::vi_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::vi_Op (const stan::math::var_value<double> &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::vi_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<vi_Op, Map<const Matrix<var_value<double, void>, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::vi_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/variance.hpp:22:49: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::vi_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>' requested here
     22 | Eigen::Map<vector_vi>(varis, size) = dtrs_map.vi();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::vi_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::val_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::val_Op (const stan::math::var_value<double> &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::val_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Map<const Matrix<var_value<double, void>, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::val_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/variance.hpp:23:33: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::val_Op, Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>' requested here
     23 | vector_d dtrs_vals = dtrs_map.val();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Map<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>::val_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_product_op<int, double> (const int &, const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_product_op<int, double> (const int &, const double &)>' requested here
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_product_op<int, double>, const CwiseNullaryOp<scalar_constant_op<int>, const Array<int, -1, 1, 0, -1, 1>>, const ArrayWrapper<Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_product_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/variance.hpp:27:44: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<int, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, const Eigen::ArrayWrapper<Eigen::Matrix<double, -1, 1>>>' requested here
     27 | Eigen::Map<vector_d>(partials, size) = 2 * diff.array() / size_m1;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_product_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::val_Op (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:20:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::val_Op (const stan::math::var_value<double> &)>' requested here
     20 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:479:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::val_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>' requested here
     479 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:102:22: note: in instantiation of default argument for 'dense_xpr_base<CwiseUnaryView<val_Op, Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
     102 | : public internal::dense_xpr_base< CwiseUnaryView<ViewOp, MatrixType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryView.h:58:31: note: in instantiation of template class 'Eigen::CwiseUnaryViewImpl<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::val_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>, Eigen::Dense>' requested here
     58 | class CwiseUnaryView : public CwiseUnaryViewImpl<ViewOp, MatrixType, typename internal::traits<MatrixType>::StorageKind>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/functor/jacobian.hpp:26:15: note: in instantiation of template class 'Eigen::CwiseUnaryView<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::val_Op, Eigen::Matrix<stan::math::var_value<double>, -1, 1>>' requested here
     26 | fx = fx_var.val();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::MatrixBase<Eigen::Matrix<stan::math::var_value<double>, -1, 1>>::val_Op (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28) (const stan::math::var_value<double> &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28) (const stan::math::var_value<double> &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Matrix<var_value<double, void>, -1, 1, 0, -1, 1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Eigen::Matrix<stan::math::var_value<double>, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:18: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28), const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>' requested here
     58 | return a.unaryExpr([](const auto& scal) { return value_of(scal); });
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:364:24: note: in instantiation of function template specialization 'stan::math::value_of(const Eigen::Matrix<stan::math::var_value<double>, -1, 1> &)::(anonymous class)::operator()<const Eigen::Matrix<stan::math::var_value<double>, -1, 1>>' requested here
     364 | decltype(std::declval<F>()(std::declval<Args&>()...))>* = nullptr>
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/meta/holder.hpp:365:6: note: while substituting prior template arguments into non-type template parameter [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:57:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, 1> &>]
     365 | auto make_holder(const F& func, Args&&... args) {
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     366 | return internal::make_holder_impl(func,
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     367 | std::make_index_sequence<sizeof...(Args)>(),
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     368 | std::forward<Args>(args)...);
     | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     369 | }
     | ~
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:56:10: note: while substituting deduced template arguments into function template 'make_holder' [with F = (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:57:7), Args = <const Eigen::Matrix<stan::math::var_value<double>, -1, 1> &>, $2 = (no value)]
     56 | return make_holder(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/functor/algebra_solver_fp.hpp:96:29: note: in instantiation of function template specialization 'stan::math::value_of<const Eigen::Matrix<stan::math::var_value<double>, -1, 1> &, nullptr, nullptr>' requested here
     96 | y_dummy(stan::math::value_of(y)),
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/value_of.hpp:58:28) (const stan::math::var_value<double> &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:87:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/double_exponential_cdf.hpp:82:10: warning: unused variable 'N' [-Wunused-variable]
     82 | size_t N = max_size(y, mu, sigma);
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:128:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/gaussian_dlm_obs_rng.hpp:98:7: warning: unused variable 'n' [-Wunused-variable]
     98 | int n = G.rows(); // number of states
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:139:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/hmm_marginal.hpp:26:13: warning: unused variable 'n_states' [-Wunused-variable]
     26 | const int n_states = omegas.rows();
     | ^~~~~~~~
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>' requested here
     39 | lp += lgamma(1 + ns_map.sum()) - lgamma(1 + ns_map).sum();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_sum_op<int> (const int &, const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const int &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const int &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), 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
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<int>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87: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>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>>' requested here
     120 | return apply_scalar_unary<lgamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::Map<const Eigen::Array<int, -1, 1>>>, nullptr>' requested here
     39 | lp += lgamma(1 + ns_map.sum()) - lgamma(1 + ns_map).sum();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/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>>' requested here
     130 | = (cut1 > 0.0).select(-cut1, 0) - (-cut1.abs()).exp().log1p();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_abs_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/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>>>>>' requested here
     130 | = (cut1 > 0.0).select(-cut1, 0) - (-cut1.abs()).exp().log1p();
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_log1p_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, Eigen::Matrix<int, -1, 1>>>' requested here
     138 | logp = y_vec.cwiseEqual(1)
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_cmp_op<int, int, Eigen::internal::cmp_EQ> (const int &, const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1>, const Eigen::Array<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), 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
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1>, const Eigen::Array<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double>, const Eigen::Array<double, -1, 1>, const Eigen::Array<double, -1, 1>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87: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>, const Eigen::Array<double, -1, 1>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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>, const Eigen::Array<double, -1, 1>>>' requested here
     83 | return apply_scalar_unary<log1m_exp_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/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>, const Eigen::Array<double, -1, 1>>, nullptr>' requested here
     142 | m_log_1p_exp_m_cut2 + log1m_exp(cut1 - cut2).array()
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::Array<double, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, const Eigen::Array<double, -1, 1>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>, const Eigen::Array<double, -1, 1>>' requested here
     164 | = (cut2 > 0).select(exp_m_cut2 / (1 + exp_m_cut2), 1 / (1 + exp(cut2)))
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_sum_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>' requested here
     165 | - exp_cuts_diff / (exp_cuts_diff - 1);
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_difference_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, 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>>, const Eigen::Array<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>>, 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>>, const Eigen::Array<double, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/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>>, 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>>, const Eigen::Array<double, -1, 1>>>' requested here
     167 | = 1 / (1 - exp_cuts_diff)
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_quotient_op<int, double> (const int &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:315:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/std_normal_rng.hpp:23:22: warning: unused variable 'function' [-Wunused-variable]
     23 | static const char* function = "std_normal_rng";
     | ^~~~~~~~
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:13:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim.hpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob.hpp:335:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/von_mises_cdf.hpp:72:10: warning: unused variable 'ck' [-Wunused-variable]
     72 | double ck = 50;
     | ^~
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:15:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing.hpp:9:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing/rvalue.hpp:610:13: warning: unused variable 'cols' [-Wunused-variable]
     610 | const int cols = rvalue_index_size(idxs.tail_.head_, x_ref.cols());
     | ^~~~
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:15:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing.hpp:10:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/indexing/rvalue_varmat.hpp:241:22: warning: unused variable 'x_cols' [-Wunused-variable]
     241 | const Eigen::Index x_cols = x.cols();
     | ^~~~~~
     file2fdb1e13f8016f.cpp:4439:9: warning: variable 'iter' set but not used [-Wunused-but-set-variable]
     4439 | int iter;
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:29:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_divide_equal.hpp:5:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_division.hpp:14:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_multiplication.hpp:7:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_subtraction.hpp:88:43: warning: lambda capture 'b' is not used [-Wunused-lambda-capture]
     88 | [avi = a.vi_, b](const auto& vi) mutable {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_subtraction.hpp:88:29: note: while substituting into a lambda expression here
     88 | [avi = a.vi_, b](const auto& vi) mutable {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_minus_equal.hpp:24:16: note: in instantiation of function template specialization 'stan::math::operator-<double, nullptr>' requested here
     24 | vi_ = (*this - b).vi_;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/core/complex_base.hpp:136:9: note: in instantiation of member function 'stan::math::var_value<double>::operator-=' requested here
     136 | re_ -= x;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/core/operator_subtraction.hpp:24:5: note: in instantiation of function template specialization 'stan::math::complex_base<stan::math::var_value<double>>::operator-=<int>' requested here
     24 | y -= rhs;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/core/operator_subtraction.hpp:55:20: note: in instantiation of function template specialization 'stan::math::internal::complex_subtract<std::complex<stan::math::var>, int>' requested here
     55 | return internal::complex_subtract(x, y);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/acosh.hpp:105:31: note: in instantiation of function template specialization 'stan::math::operator-<stan::math::var_value<double>, int>' requested here
     105 | auto y = log(z + sqrt(z * z - 1));
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/acosh.hpp:94:32: note: in instantiation of function template specialization 'stan::math::internal::complex_acosh<stan::math::var_value<double>>' requested here
     94 | return stan::math::internal::complex_acosh(z);
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_abs2_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_abs2_op<double> (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs2_op<double>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_abs2_op<double>, const Block<const Block<Block<Matrix<double, -1, -1, 0, -1, -1>, -1, 1, true>, -1, 1, false>, -1, 1, false>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_abs2_op<double>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/Dot.h:98:31: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs2_op<double>, const Eigen::Block<const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, -1, 1>, -1, 1>>' requested here
     98 | return numext::real((*this).cwiseAbs2().sum());
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Householder/Householder.h:76:60: note: (skipping 3 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
     76 | RealScalar tailSqNorm = size()==1 ? RealScalar(0) : tail.squaredNorm();
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:445:5: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>>' requested here
     445 | tridiagonalization_inplace(mat,hCoeffs);
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:430:52: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace_selector<Eigen::Matrix<double, -1, -1>>::run<Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>>' requested here
     430 | tridiagonalization_inplace_selector<MatrixType>::run(mat, diag, subdiag, extractQ);
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:437:13: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>>' requested here
     437 | internal::tridiagonalization_inplace(mat, diag, m_subdiag, computeEigenvectors);
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:168:7: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1>>::compute<Eigen::Map<Eigen::Matrix<double, -1, -1>>>' requested here
     168 | compute(matrix.derived(), options);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:46:45: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1>>::SelfAdjointEigenSolver<Eigen::Map<Eigen::Matrix<double, -1, -1>>>' requested here
     46 | Eigen::SelfAdjointEigenSolver<matrix_d> solver(Ad);
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_abs2_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_conj_product_op<double> (const double &, const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_conj_product_op<double> (const double &, const double &)>' requested here
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<Eigen::internal::scalar_conj_product_op<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1>, const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_conj_product_op<double, double>, const Block<Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>, const Block<Block<Matrix<double, -1, -1, 0, -1, -1>, -1, 1, true>, -1, 1, false>>>' required here
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_conj_product_op<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1>, const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, -1, 1>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/Dot.h:37:23: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_conj_product_op<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1>, const Eigen::Block<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>, -1, 1>>' requested here
     37 | return a.template binaryExpr<conj_prod>(b).sum();
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/Dot.h:84:55: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
     84 | return internal::dot_nocheck<Derived,OtherDerived>::run(*this, other);
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:445:5: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>>' requested here
     445 | tridiagonalization_inplace(mat,hCoeffs);
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/Tridiagonalization.h:430:52: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace_selector<Eigen::Matrix<double, -1, -1>>::run<Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>>' requested here
     430 | tridiagonalization_inplace_selector<MatrixType>::run(mat, diag, subdiag, extractQ);
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:437:13: note: in instantiation of function template specialization 'Eigen::internal::tridiagonalization_inplace<Eigen::Matrix<double, -1, -1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>>' requested here
     437 | internal::tridiagonalization_inplace(mat, diag, m_subdiag, computeEigenvectors);
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h:168:7: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1>>::compute<Eigen::Map<Eigen::Matrix<double, -1, -1>>>' requested here
     168 | compute(matrix.derived(), options);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/eigenvalues_sym.hpp:46:45: note: in instantiation of function template specialization 'Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, -1, -1>>::SelfAdjointEigenSolver<Eigen::Map<Eigen::Matrix<double, -1, -1>>>' requested here
     46 | Eigen::SelfAdjointEigenSolver<matrix_d> solver(Ad);
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_conj_product_op<double> (const double &, const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:28:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:84:43: warning: lambda capture 'b' is not used [-Wunused-lambda-capture]
     84 | [avi = a.vi_, b](const auto& vi) mutable {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:84:29: note: while substituting into a lambda expression here
     84 | [avi = a.vi_, b](const auto& vi) mutable {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/grad_inc_beta.hpp:45:43: note: in instantiation of function template specialization 'stan::math::operator+<int, nullptr>' requested here
     45 | grad_2F1(dF1, dF2, a + b, var(1.0), a + 1, z);
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1>>, const 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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_sum_op<double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Array<double, -1, 1, 0, -1, 1>>, const 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
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1>>, const 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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1>>, const 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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1>>, const 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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1>>, const 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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>>' requested here
     120 | return apply_scalar_unary<lgamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/lmgamma.hpp:58:23: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<double>, const Eigen::Array<double, -1, 1>>, const 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>>, const Eigen::CwiseNullaryOp<Eigen::internal::linspaced_op<double, __attribute__((__vector_size__(2 * sizeof(double)))) double>, Eigen::Array<double, -1, 1>>>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>, nullptr>' requested here
     58 | return result + sum(lgamma(x + (1 - Eigen::ArrayXd::LinSpaced(k, 1, k)) / 2));
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/lmgamma.hpp:16:20: note: in instantiation of function template specialization 'stan::math::lmgamma<double, nullptr>' requested here
     16 | : op_dv_vari(lmgamma(a, bvi->val_), a, bvi) {}
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from file2fdb1e13f8016f.cpp:16:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/src/stan/model/model_header.hpp:4:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math.hpp:19:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev.hpp:8:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core.hpp:28:
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:84:43: warning: lambda capture 'b' is not used [-Wunused-lambda-capture]
     84 | [avi = a.vi_, b](const auto& vi) mutable {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/core/operator_addition.hpp:84:29: note: while substituting into a lambda expression here
     84 | [avi = a.vi_, b](const auto& vi) mutable {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/trigamma.hpp:63:31: note: in instantiation of function template specialization 'stan::math::operator+<double, nullptr>' requested here
     63 | value = -trigamma_impl(-x + 1.0) + square(pi() / sin(-pi() * x));
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/rev/fun/trigamma.hpp:23:44: note: in instantiation of function template specialization 'stan::math::trigamma_impl<stan::math::var_value<double>>' requested here
     23 | inline var trigamma(const var& u) { return trigamma_impl(u); }
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log1m.hpp:74:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1m_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     74 | return apply_scalar_unary<log1m_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:88:32: note: in instantiation of function template specialization 'stan::math::log1m<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, nullptr, nullptr>' requested here
     88 | const auto& log1m_y = to_ref(log1m(y_val));
     | ^
     file2fdb1e13f8016f.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1137 | beta_lpdf<false>(
     | ^
     file2fdb1e13f8016f.cpp:4571:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, double, double, Eigen::Matrix<double, -1, 1>>' requested here
     4571 | return model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     120 | return apply_scalar_unary<lgamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:93:17: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, nullptr>' requested here
     93 | logp -= sum(lgamma(alpha_val)) * N / max_size(alpha);
     | ^
     file2fdb1e13f8016f.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1137 | beta_lpdf<false>(
     | ^
     file2fdb1e13f8016f.cpp:4571:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, double, double, Eigen::Matrix<double, -1, 1>>' requested here
     4571 | return model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_sum_op<double, double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     120 | return apply_scalar_unary<lgamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:116:17: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>, nullptr>' requested here
     116 | logp += sum(lgamma(alpha_beta)) * N / max_size(alpha, beta);
     | ^
     file2fdb1e13f8016f.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1137 | beta_lpdf<false>(
     | ^
     file2fdb1e13f8016f.cpp:4571:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, double, double, Eigen::Matrix<double, -1, 1>>' requested here
     4571 | return model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseBinaryOp<scalar_sum_op<double, double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/digamma.hpp:77:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     77 | return apply_scalar_unary<digamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:120:57: note: in instantiation of function template specialization 'stan::math::digamma<Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>, nullptr>' requested here
     120 | && !is_constant_all<T_scale_fail>::value > (digamma(alpha_beta));
     | ^
     file2fdb1e13f8016f.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1137 | beta_lpdf<false>(
     | ^
     file2fdb1e13f8016f.cpp:4571:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, double, double, Eigen::Matrix<double, -1, 1>>' requested here
     4571 | return model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/digamma.hpp:77:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     77 | return apply_scalar_unary<digamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/beta_lpdf.hpp:123:44: note: in instantiation of function template specialization 'stan::math::digamma<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, nullptr>' requested here
     123 | = log_y + digamma_alpha_beta - digamma(alpha_val);
     | ^
     file2fdb1e13f8016f.cpp:1137:16: note: in instantiation of function template specialization 'stan::math::beta_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1137 | beta_lpdf<false>(
     | ^
     file2fdb1e13f8016f.cpp:4571:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, double, double, Eigen::Matrix<double, -1, 1>>' requested here
     4571 | return model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Map<const Matrix<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::lgamma_fun, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>' requested here
     120 | return apply_scalar_unary<lgamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/gamma_lpdf.hpp:102:17: note: in instantiation of function template specialization 'stan::math::lgamma<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>, nullptr>' requested here
     102 | logp = -sum(lgamma(alpha_val)) * N / math::size(alpha);
     | ^
     file2fdb1e13f8016f.cpp:1146:16: note: in instantiation of function template specialization 'stan::math::gamma_lpdf<false, Eigen::Matrix<double, -1, 1>, std::vector<double>, int, nullptr>' requested here
     1146 | lp = (lp + gamma_lpdf<false>(zeta, delta, 1));
     | ^
     file2fdb1e13f8016f.cpp:4571:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, double, double, Eigen::Matrix<double, -1, 1>>' requested here
     4571 | return model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Map<const Matrix<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/digamma.hpp:77:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::digamma_fun, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>>' requested here
     77 | return apply_scalar_unary<digamma_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/gamma_lpdf.hpp:110:58: note: in instantiation of function template specialization 'stan::math::digamma<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<double, -1, 1>>>, nullptr>' requested here
     110 | ops_partials.edge2_.partials_ = log_beta + log_y - digamma(alpha_val);
     | ^
     file2fdb1e13f8016f.cpp:1146:16: note: in instantiation of function template specialization 'stan::math::gamma_lpdf<false, Eigen::Matrix<double, -1, 1>, std::vector<double>, int, nullptr>' requested here
     1146 | lp = (lp + gamma_lpdf<false>(zeta, delta, 1));
     | ^
     file2fdb1e13f8016f.cpp:4571:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>, double, double, Eigen::Matrix<double, -1, 1>>' requested here
     4571 | return model2fdb1e343ae7c0_User_defined_functions_namespace::decov_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_square_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_square_op<double> (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_square_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_square_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_square_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/square.hpp:71:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_square_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     71 | x, [](const auto& v) { return v.array().square(); });
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::square(const Eigen::Matrix<double, -1, 1> &)::(anonymous class)::operator()<Eigen::Matrix<double, -1, 1>>' requested here
     48 | f(x));
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/square.hpp:70:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Matrix<double, -1, 1>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/square.hpp:71:10), Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     70 | return apply_vector_unary<Container>::apply(
     | ^
     file2fdb1e13f8016f.cpp:1223:39: note: in instantiation of function template specialization 'stan::math::square<Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1223 | assign(lambda2, nil_index_list(), square(lambda),
     | ^
     file2fdb1e13f8016f.cpp:4587:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::hs_prior<Eigen::Matrix<double, -1, 1>, double, double, double, double, double>' requested here
     4587 | return model2fdb1e343ae7c0_User_defined_functions_namespace::hs_prior(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_square_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Matrix<double, -1, 1, 0, -1, 1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::Matrix<double, -1, 1>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_logit.hpp:88:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::Matrix<double, -1, 1>>' requested here
     88 | return apply_scalar_unary<inv_logit_fun, T>::apply(x);
     | ^
     file2fdb1e13f8016f.cpp:1567:14: note: in instantiation of function template specialization 'stan::math::inv_logit<Eigen::Matrix<double, -1, 1>, nullptr, nullptr>' requested here
     1567 | return inv_logit(eta);
     | ^
     file2fdb1e13f8016f.cpp:4646:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_bern<Eigen::Matrix<double, -1, 1>>' requested here
     4646 | return model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_bern(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Matrix<double, -1, 1, 0, -1, 1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::Phi_fun, Eigen::Matrix<double, -1, 1>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Phi.hpp:69:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::Phi_fun, Eigen::Matrix<double, -1, 1>>' requested here
     69 | return apply_scalar_unary<Phi_fun, T>::apply(x);
     | ^
     file2fdb1e13f8016f.cpp:1572:16: note: in instantiation of function template specialization 'stan::math::Phi<Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1572 | return Phi(eta);
     | ^
     file2fdb1e13f8016f.cpp:4646:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_bern<Eigen::Matrix<double, -1, 1>>' requested here
     4646 | return model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_bern(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_atan_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_atan_op<double> (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_atan_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_atan_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_atan_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/atan.hpp:61:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_atan_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     61 | x, [](const auto& v) { return v.array().atan(); });
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::atan(const Eigen::Matrix<double, -1, 1> &)::(anonymous class)::operator()<Eigen::Matrix<double, -1, 1>>' requested here
     48 | f(x));
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/atan.hpp:60:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Matrix<double, -1, 1>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/atan.hpp:61:10), Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     60 | return apply_vector_unary<Container>::apply(
     | ^
     file2fdb1e13f8016f.cpp:1577:41: note: in instantiation of function template specialization 'stan::math::atan<Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1577 | return add(divide(stan::math::atan(eta), stan::math::pi()), 0.5);
     | ^
     file2fdb1e13f8016f.cpp:4646:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_bern<Eigen::Matrix<double, -1, 1>>' requested here
     4646 | return model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_bern(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_atan_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Matrix<double, -1, 1, 0, -1, 1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Matrix<double, -1, 1>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::Matrix<double, -1, 1>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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::Matrix<double, -1, 1>>' requested here
     83 | return apply_scalar_unary<log1m_exp_fun, T>::apply(x);
     | ^
     file2fdb1e13f8016f.cpp:1657:28: note: in instantiation of function template specialization 'stan::math::log1m_exp<Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     1657 | lp = (lp + sum(log1m_exp(eta0)));
     | ^
     file2fdb1e13f8016f.cpp:4655:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::bern_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>>' requested here
     4655 | return model2fdb1e343ae7c0_User_defined_functions_namespace::bern_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseUnaryOp<scalar_opposite_op<double>, const MatrixWrapper<const CwiseUnaryOp<scalar_exp_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1m_exp_fun, Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/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::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>>' requested here
     83 | return apply_scalar_unary<log1m_exp_fun, T>::apply(x);
     | ^
     file2fdb1e13f8016f.cpp:1664:30: note: in instantiation of function template specialization 'stan::math::log1m_exp<Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::MatrixWrapper<const Eigen::CwiseUnaryOp<Eigen::internal::scalar_exp_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>, nullptr>' requested here
     1664 | lp = (lp + sum(log1m_exp(minus(stan::math::exp(eta1)))));
     | ^
     file2fdb1e13f8016f.cpp:4655:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::bern_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>>' requested here
     4655 | return model2fdb1e343ae7c0_User_defined_functions_namespace::bern_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Array<double, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Array<double, -1, 1, 0, -1, 1>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Array<double, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::Array<double, -1, 1>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::log1p_fun, Eigen::Array<double, -1, 1>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/log1p.hpp:82:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::log1p_fun, Eigen::Array<double, -1, 1>>' requested here
     82 | return apply_scalar_unary<log1p_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/bernoulli_logit_lpmf.hpp:79:54: note: in instantiation of function template specialization 'stan::math::log1p<Eigen::Array<double, -1, 1>, nullptr>' requested here
     79 | (ntheta < -cutoff).select(ntheta, -log1p(exp_m_ntheta))));
     | ^
     file2fdb1e13f8016f.cpp:1725:11: note: in instantiation of function template specialization 'stan::math::bernoulli_logit_lpmf<false, int, double, nullptr>' requested here
     1725 | bernoulli_logit_lpmf<false>(y, eta[(n - 1)]),
     | ^
     file2fdb1e13f8016f.cpp:4664:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::pw_bern<Eigen::Matrix<double, -1, 1>>' requested here
     4664 | return model2fdb1e343ae7c0_User_defined_functions_namespace::pw_bern(y, eta,
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_sum_op<double, int> (const double &, const int &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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, int> (const double &, const int &)>' requested here
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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, int>, const Eigen::Array<double, -1, 1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_sum_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
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_sum_op<double, int>, const Eigen::Array<double, -1, 1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/bernoulli_logit_lpmf.hpp:87:72: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double, int>, const Eigen::Array<double, -1, 1>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op<int>, const Eigen::Array<int, -1, 1>>>' requested here
     87 | .select(signs * exp_m_ntheta / (exp_m_ntheta + 1),
     | ^
     file2fdb1e13f8016f.cpp:1725:11: note: in instantiation of function template specialization 'stan::math::bernoulli_logit_lpmf<false, int, double, nullptr>' requested here
     1725 | bernoulli_logit_lpmf<false>(y, eta[(n - 1)]),
     | ^
     file2fdb1e13f8016f.cpp:4664:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::pw_bern<Eigen::Matrix<double, -1, 1>>' requested here
     4664 | return model2fdb1e343ae7c0_User_defined_functions_namespace::pw_bern(y, eta,
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_sum_op<double, int> (const double &, const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_cast_op<double, double> (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_cast_op<double, double> (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1>, -1, 1>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_cast_op<double, double>, const Block<const Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1>, -1, 1>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:510:20: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1>, -1, 1>>' requested here
     510 | typedef typename _CastType::Scalar NewScalarType;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h:48:69: note: in instantiation of template class 'Eigen::internal::cast_return_type<Eigen::Block<const Eigen::Matrix<double, -1, 1>, -1, 1>, const Eigen::CwiseUnaryOp<Eigen::internal::scalar_cast_op<double, double>, const Eigen::Block<const Eigen::Matrix<double, -1, 1>, -1, 1>>>' requested here
     48 | template<class NewType> struct CastXpr { typedef typename internal::cast_return_type<Derived,const CwiseUnaryOp<internal::scalar_cast_op<Scalar, NewType>, const Derived> >::type Type; };
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseUnaryOps.h:61:1: note: in instantiation of template class 'Eigen::MatrixBase<Eigen::Block<const Eigen::Matrix<double, -1, 1>, -1, 1>>::CastXpr<double>' requested here
     61 | typename CastXpr<NewType>::Type
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/append_row.hpp:47:38: note: while substituting explicitly-specified template arguments into function template 'cast'
     47 | result.topRows(Arows) = A.template cast<T_return>();
     | ^
     file2fdb1e13f8016f.cpp:1895:9: note: in instantiation of function template specialization 'stan::math::append_row<Eigen::VectorBlock<const Eigen::Matrix<double, -1, 1>>, Eigen::VectorBlock<const Eigen::Matrix<double, -1, 1>>, nullptr>' requested here
     1895 | append_row(segment(eta1, pos1, D_g), segment(eta0, pos0, F_g)),
     | ^
     file2fdb1e13f8016f.cpp:4687:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::clogit_lpdf<false, Eigen::Matrix<double, -1, 1>, Eigen::Matrix<double, -1, 1>>' requested here
     4687 | return model2fdb1e343ae7c0_User_defined_functions_namespace::clogit_lpdf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_cast_op<double, double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_logit.hpp:88:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     88 | return apply_scalar_unary<inv_logit_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:75:52: note: in instantiation of function template specialization 'stan::math::inv_logit<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, nullptr, nullptr>' requested here
     75 | = to_ref_if<!is_constant_all<T_prob>::value>(inv_logit(alpha_val));
     | ^
     file2fdb1e13f8016f.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1>>' requested here
     2007 | lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
     | ^
     file2fdb1e13f8016f.cpp:4707:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1>>' requested here
     4707 | return model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const CwiseUnaryOp<scalar_opposite_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:70:14: note: in instantiation of template class 'Eigen::CwiseUnaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9), const Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     70 | return x.unaryExpr(
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:87:33: note: in instantiation of member function 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>::apply' requested here
     87 | apply_scalar_unary<F, T>::apply(std::declval<T>()))>;
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_logit.hpp:88:10: note: in instantiation of template class 'stan::math::apply_scalar_unary<stan::math::inv_logit_fun, Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     88 | return apply_scalar_unary<inv_logit_fun, T>::apply(x);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:77:52: note: in instantiation of function template specialization 'stan::math::inv_logit<Eigen::CwiseUnaryOp<Eigen::internal::scalar_opposite_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>, nullptr, nullptr>' requested here
     77 | = to_ref_if<!is_constant_all<T_prob>::value>(inv_logit(-alpha_val));
     | ^
     file2fdb1e13f8016f.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1>>' requested here
     2007 | lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
     | ^
     file2fdb1e13f8016f.cpp:4707:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1>>' requested here
     4707 | return model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_unary.hpp:71:9) (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_difference_op<int> (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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> (const int &, const int &)>' requested here
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/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>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<scalar_difference_op<int, int>, const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>, const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<Eigen::internal::scalar_difference_op<int>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:83:41: note: in instantiation of template class 'Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<int>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>>' requested here
     83 | + (N_val - n_val) * log_inv_logit_neg_alpha);
     | ^
     file2fdb1e13f8016f.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1>>' requested here
     2007 | lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
     | ^
     file2fdb1e13f8016f.cpp:4707:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1>>' requested here
     4707 | return model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_difference_op<int> (const int &, const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36) (const int &, const int &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36) (const int &, const int &)>' requested here
     33 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseBinaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseBinaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>, const ArrayWrapper<const Map<const Matrix<int, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>>>>' required here
     149 | : public internal::generic_xpr_base<CwiseBinaryOp<BinaryOp, Lhs, Rhs> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, Eigen::Dense>' requested here
     78 | public CwiseBinaryOpImpl<
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_scalar_binary.hpp:59:12: note: in instantiation of template class 'Eigen::CwiseBinaryOp<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, const Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>>' requested here
     59 | return x.binaryExpr(y, f);
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:10: note: in instantiation of function template specialization 'stan::math::apply_scalar_binary<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, (lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36), nullptr>' requested here
     165 | return apply_scalar_binary(a, b, [&](const auto& c, const auto& d) {
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/prob/binomial_logit_lpmf.hpp:85:17: note: in instantiation of function template specialization 'stan::math::binomial_coefficient_log<Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, Eigen::ArrayWrapper<const Eigen::Map<const Eigen::Matrix<int, -1, 1>>>, nullptr>' requested here
     85 | logp += sum(binomial_coefficient_log(N_val, n_val)) * maximum_size
     | ^
     file2fdb1e13f8016f.cpp:2007:18: note: in instantiation of function template specialization 'stan::math::binomial_logit_lpmf<false, std::vector<int>, std::vector<int>, Eigen::Matrix<double, -1, 1>>' requested here
     2007 | lp = (lp + binomial_logit_lpmf<false>(y, trials, eta));
     | ^
     file2fdb1e13f8016f.cpp:4707:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false, Eigen::Matrix<double, -1, 1>>' requested here
     4707 | return model2fdb1e343ae7c0_User_defined_functions_namespace::binom_lpmf<false>(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/binomial_coefficient_log.hpp:165:36) (const int &, const int &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     In file included from <built-in>:1:
     In file included from /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/Eigen.hpp:22:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Dense:1:
     In file included from /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/Core:367:
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of<Eigen::internal::scalar_rsqrt_op<double> (const double &)>' is deprecated [-Wdeprecated-declarations]
     320 | typedef typename std::result_of<T>::type type1;
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of<Eigen::internal::scalar_rsqrt_op<double> (const double &)>' requested here
     21 | typedef typename result_of<
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits<Eigen::CwiseUnaryOp<Eigen::internal::scalar_rsqrt_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>>' requested here
     497 | template<typename Derived, typename XprKind = typename traits<Derived>::XprKind, typename StorageKind = typename traits<Derived>::StorageKind>
     | ^
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base<CwiseUnaryOp<scalar_rsqrt_op<double>, const ArrayWrapper<const Matrix<double, -1, 1, 0, -1, 1>>>>' required here
     95 | : public internal::generic_xpr_base<CwiseUnaryOp<UnaryOp, XprType> >::type
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     /tmp/RtmpGbbUPr/RLIBS_23ed29789f31f9/RcppEigen/include/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl<Eigen::internal::scalar_rsqrt_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>, Eigen::Dense>' requested here
     55 | class CwiseUnaryOp : public CwiseUnaryOpImpl<UnaryOp, XprType, typename internal::traits<XprType>::StorageKind>, internal::no_assignment_operator
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_sqrt.hpp:58:47: note: in instantiation of template class 'Eigen::CwiseUnaryOp<Eigen::internal::scalar_rsqrt_op<double>, const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1>>>' requested here
     58 | x, [](const auto& v) { return v.array().rsqrt(); });
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/functor/apply_vector_unary.hpp:48:24: note: in instantiation of function template specialization 'stan::math::inv_sqrt(const Eigen::Matrix<double, -1, 1> &)::(anonymous class)::operator()<Eigen::Matrix<double, -1, 1>>' requested here
     48 | f(x));
     | ^
     /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_sqrt.hpp:57:41: note: in instantiation of function template specialization 'stan::math::apply_vector_unary<Eigen::Matrix<double, -1, 1>>::apply<(lambda at /data/gannet/ripley/R/test-clang/StanHeaders/include/stan/math/prim/fun/inv_sqrt.hpp:58:10), Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     57 | return apply_vector_unary<Container>::apply(
     | ^
     file2fdb1e13f8016f.cpp:2469:20: note: in instantiation of function template specialization 'stan::math::inv_sqrt<Eigen::Matrix<double, -1, 1>, nullptr>' requested here
     2469 | return inv_sqrt(eta);
     | ^
     file2fdb1e13f8016f.cpp:4774:63: note: in instantiation of function template specialization 'model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_inv_gaussian<Eigen::Matrix<double, -1, 1>>' requested here
     4774 | return model2fdb1e343ae7c0_User_defined_functions_namespace::linkinv_inv_gaussian(
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__type_traits/result_of.h:25:7: note: 'result_of<Eigen::internal::scalar_rsqrt_op<double> (const double &)>' has been explicitly marked deprecated here
     25 | class _LIBCPP_DEPRECATED_IN_CXX17 result_of;
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:955:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
     955 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
     | ^
     /usr/local/clang17/bin/../include/c++/v1/__config:928:49: note: expanded from macro '_LIBCPP_DEPRECATED'
     928 | # define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
     | ^
     108 warnings and 16 errors generated.
     make[2]: *** [/data/gannet/ripley/R/R-flang/etc/Makeconf:198: file2fdb1e13f8016f.o] Error 1
     make[2]: Leaving directory '/tmp/RtmpGbbUPr/working_dir/Rtmpml51UT/sourceCpp-x86_64-pc-linux-gnu-1.0.11/sourcecpp_2fdb1e21b92cc1'
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test_stan_functions.R:64:1'): (code run outside of `test_that()`) ───
     Error in `expose_stan_functions(stanc_ret, rebuild = TRUE, verbose = TRUE)`: Compilation failed!
     Backtrace:
     ▆
     1. └─rstan::expose_stan_functions(stanc_ret, rebuild = TRUE, verbose = TRUE) at test_stan_functions.R:64:0
    
     [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2.26.1
Flags: --no-examples --no-tests --no-vignettes
Check: installed package size
Result: NOTE
     installed size is 18.9Mb
     sub-directories of 1Mb or more:
     R 1.9Mb
     doc 4.7Mb
     libs 11.6Mb
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 2.26.1
Flags: --no-examples --no-tests --no-vignettes
Check: for GNU extensions in Makefiles
Result: NOTE
    GNU make is a SystemRequirements.
Flavors: r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64

Version: 2.26.1
Check: whether package can be installed
Result: ERROR
    Installation failed.
Flavor: r-oldrel-macos-x86_64