Running ‘testthat.R’ [3m/53m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(BayesPostEst)
  > 
  > test_check("BayesPostEst")
  Loading required package: rjags
  Loading required package: coda
  Linked to JAGS 4.3.2
  Loaded modules: basemod,bugs
  
  Attaching package: 'R2jags'
  
  The following object is masked from 'package:coda':
  
      traceplot
  
  Loading required package: Rcpp
  Loading 'brms' package (version 2.23.0). Useful instructions
  can be found by typing help('brms'). A more detailed introduction
  to the package is available through vignette('brms_overview').
  
  Attaching package: 'brms'
  
  The following object is masked from 'package:stats':
  
      ar
  
  Compiling Stan program...
  specified C++17
  make cmd is
    make -f '/data/gannet/ripley/R/R-devel/etc/Makeconf' -f '/data/gannet/ripley/R/R-devel/share/make/shlib.mk' CXX='$(CXX17) $(CXX17STD)' CXXFLAGS='$(CXX17FLAGS)' CXXPICFLAGS='$(CXX17PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX17LDFLAGS)' SHLIB_LD='$(SHLIB_CXX17LD)' SHLIB='file1accf819b3ace5.so' OBJECTS='file1accf819b3ace5.o'
  
  make would use
  make[1]: Entering directory '/tmp/Rtmpa5xXtN/working_dir/RtmptojENG'
  g++ -std=gnu++17 -I"/data/gannet/ripley/R/R-devel/include" -DNDEBUG   -I"/data/gannet/ripley/R/test-dev/Rcpp/include/"  -I"/data/gannet/ripley/R/test-dev/RcppEigen/include/"  -I"/data/gannet/ripley/R/test-dev/RcppEigen/include/unsupported"  -I"/data/gannet/ripley/R/test-dev/BH/include" -I"/data/gannet/ripley/R/test-dev/StanHeaders/include/src/"  -I"/data/gannet/ripley/R/test-dev/StanHeaders/include/"  -I"/data/gannet/ripley/R/test-dev/RcppParallel/include/"  -I"/data/gannet/ripley/R/test-dev/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  -D_HAS_AUTO_PTR_ETC=0  -include '/data/gannet/ripley/R/test-dev/StanHeaders/include/stan/math/prim/fun/Eigen.hpp'  -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1   -I/usr/local/include    -fpic  -g -O2 -Wall -pedantic -mtune=native -Wno-ignored-attributes -Wno-parentheses -Wp,-D_FORTIFY_SOURCE=3 -fexceptions -fstack-protector-strong -fstack-clash-protection -fcf-protection   -c file1accf819b3ace5.cpp -o file1accf819b3ace5.o
  if test  "zfile1accf819b3ace5.o" != "z"; then \
    echo g++ -std=gnu++17 -shared  -L/usr/local/lib64 -o file1accf819b3ace5.so file1accf819b3ace5.o  '/data/gannet/ripley/R/test-dev/rstan/lib//libStanServices.a' -L'/data/gannet/ripley/R/test-dev/StanHeaders/lib/' -lStanHeaders -L'/data/gannet/ripley/R/test-dev/RcppParallel/lib/' -ltbb    ; \
    g++ -std=gnu++17 -shared  -L/usr/local/lib64 -o file1accf819b3ace5.so file1accf819b3ace5.o  '/data/gannet/ripley/R/test-dev/rstan/lib//libStanServices.a' -L'/data/gannet/ripley/R/test-dev/StanHeaders/lib/' -lStanHeaders -L'/data/gannet/ripley/R/test-dev/RcppParallel/lib/' -ltbb    ; \
  fi
  make[1]: Leaving directory '/tmp/Rtmpa5xXtN/working_dir/RtmptojENG'
  Error in `source_dir()`:
  ! Failed to evaluate './setup.R'.
  Caused by error in `compileCode()`:
  ! , 40692, 0, 2147483399> >; Eigen::VectorXd = Eigen::Matrix<double, -1, 1>; std::ostream = std::basic_ostream<char>]’
    140 |     return static_cast<const M*>(this)->write_array(
        |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    141 |         rng, theta, vars, include_tparams, include_gqs, msgs);
        |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /data/gannet/ripley/R/test-dev/StanHeaders/include/src/stan/model/model_base_crtp.hpp:136:8:   required from here
    136 |   void write_array(boost::ecuyer1988& rng, Eigen::VectorXd& theta,
        |        ^~~~~~~~~~~
  file1accf819b3ace5.cpp:274:20: warning: unused variable ‘jacobian__’ [-Wunused-variable]
    274 |     constexpr bool jacobian__ = false;
        |                    ^~~~~~~~~~
  g++: fatal error: Terminated signal terminated program cc1plus
  compilation terminated.
  make[1]: *** [/data/gannet/ripley/R/R-devel/etc/Makeconf:197: file1accf819b3ace5.o] Error 1
  make[1]: Target 'all' not remade because of errors.
  Backtrace:
       ▆
    1. ├─testthat::test_check("BayesPostEst")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(...)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       └─base::lapply(r_scripts, source) at ./setup.R:24:1
   15. │                         └─base (local) FUN(X[[i]], ...)
   16. │                           ├─base::withVisible(eval(ei, envir))
   17. │                           └─base::eval(ei, envir)
   18. │                             └─base::eval(ei, envir)
   19. ├─brms::brm(...)
   20. │ └─brms::do_call(compile_model, compile_args)
   21. │   └─brms:::eval2(call, envir = args, enclos = envir)
   22. │     └─base::eval(expr, envir, ...)
   23. │       └─base::eval(expr, envir, ...)
   24. │         └─brms (local) .fun(...)
   25. │           └─brms (local) .compile_model(model, ...)
   26. │             ├─brms:::eval_silent(...)
   27. │             │ └─base::eval(expr, envir)
   28. │             │   └─base::eval(expr, envir)
   29. │             └─brms::do_call(rstan::stan_model, args)
   30. │               └─brms:::eval2(call, envir = args, enclos = envir)
   31. │                 └─base::eval(expr, envir, ...)
   32. │                   └─base::eval(expr, envir, ...)
   33. │                     └─rstan (local) .fun(model_code = .x1)
   34. │                       └─rstan:::cxxfunctionplus(...)
   35. │                         ├─pkgbuild::with_build_tools(...)
   36. │                         └─inline::cxxfunction(...)
   37. │                           └─inline:::compileCode(f, code, language = language, verbose = verbose)
   38. │                             └─base::stop(...)
   39. └─base::.handleSimpleError(...)
   40.   └─testthat (local) h(simpleError(msg, call))
   41.     └─cli::cli_abort(...)
   42.       └─rlang::abort(...)
  Error in `source_dir()`:
  ! Failed to evaluate './setup.R'.
  Caused by error in `sink()`:
  ! invalid connection
  Backtrace:
       ▆
    1. ├─testthat::test_check("BayesPostEst")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(...)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       └─base::lapply(r_scripts, source) at ./setup.R:24:1
   15. │                         └─base (local) FUN(X[[i]], ...)
   16. │                           ├─base::withVisible(eval(ei, envir))
   17. │                           └─base::eval(ei, envir)
   18. │                             └─base::eval(ei, envir)
   19. ├─brms::brm(...)
   20. │ └─brms::do_call(compile_model, compile_args)
   21. │   └─brms:::eval2(call, envir = args, enclos = envir)
   22. │     └─base::eval(expr, envir, ...)
   23. │       └─base::eval(expr, envir, ...)
   24. │         └─brms (local) .fun(...)
   25. │           └─brms (local) .compile_model(model, ...)
   26. │             ├─brms:::eval_silent(...)
   27. │             │ └─base::eval(expr, envir)
   28. │             │   └─base::eval(expr, envir)
   29. │             └─brms::do_call(rstan::stan_model, args)
   30. │               └─brms:::eval2(call, envir = args, enclos = envir)
   31. │                 └─base::eval(expr, envir, ...)
   32. │                   └─base::eval(expr, envir, ...)
   33. │                     └─rstan (local) .fun(model_code = .x1)
   34. │                       └─rstan:::cxxfunctionplus(...)
   35. │                         └─base::sink(type = "output")
   36. └─base::.handleSimpleError(`<fn>`, "invalid connection", base::quote(sink(type = "output")))
   37.   └─testthat (local) h(simpleError(msg, call))
   38.     └─cli::cli_abort(...)
   39.       └─rlang::abort(...)
  Execution halted