Running ‘testthat.R’ [178s/179s]
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.22.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...
  Start sampling
  
  SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 3.7e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.37 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 1: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 1: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 1: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 1: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 1: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 1: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 1: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 1: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 1: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 1: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 1: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.158 seconds (Warm-up)
  Chain 1:                0.145 seconds (Sampling)
  Chain 1:                0.303 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 3.2e-05 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0.32 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 2: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 2: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 2: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 2: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 2: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 2: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 2: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 2: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 2: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 2: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 2: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.147 seconds (Warm-up)
  Chain 2:                0.157 seconds (Sampling)
  Chain 2:                0.304 seconds (Total)
  Chain 2: 
  module glm loaded
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 500
     Unobserved stochastic nodes: 5
     Total graph size: 3509
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 500
     Unobserved stochastic nodes: 5
     Total graph size: 3015
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 500
     Unobserved stochastic nodes: 3
     Total graph size: 3506
  
  Initializing model
  
  Compiling model graph
     Resolving undeclared variables
     Allocating nodes
  Graph information:
     Observed stochastic nodes: 500
     Unobserved stochastic nodes: 3
     Total graph size: 3506
  
  Initializing model
  
  ##
  ## Markov Chain Monte Carlo Package (MCMCpack)
  ## Copyright (C) 2003-2025 Andrew D. Martin, Kevin M. Quinn, and Jong Hee Park
  ##
  ## Support provided by the U.S. National Science Foundation
  ## (Grants SES-0350646 and SES-0350613)
  ##
  
  Attaching package: 'MCMCpack'
  
  The following objects are masked from 'package:brms':
  
      ddirichlet, rdirichlet
  
  Loading required package: StanHeaders
  
  rstan version 2.32.7 (Stan version 2.32.2)
  
  For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores()).
  To avoid recompilation of unchanged Stan programs, we recommend calling
  rstan_options(auto_write = TRUE)
  For within-chain threading using `reduce_sum()` or `map_rect()` Stan functions,
  change `threads_per_chain` option:
  rstan_options(threads_per_chain = 1)
  
  
  Attaching package: 'rstan'
  
  The following object is masked from 'package:runjags':
  
      extract
  
  The following object is masked from 'package:R2jags':
  
      traceplot
  
  The following object is masked from 'package:coda':
  
      traceplot
  
  
  SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.00059 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 5.9 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 1: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 1: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 1: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 1: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 1: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 1: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 1: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 1: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 1: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 1: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 1: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 1.725 seconds (Warm-up)
  Chain 1:                1.658 seconds (Sampling)
  Chain 1:                3.383 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 0.000274 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 2.74 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 2: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 2: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 2: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 2: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 2: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 2: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 2: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 2: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 2: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 2: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 2: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 1.71 seconds (Warm-up)
  Chain 2:                2.115 seconds (Sampling)
  Chain 2:                3.825 seconds (Total)
  Chain 2: 
  
  SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 3).
  Chain 3: 
  Chain 3: Gradient evaluation took 0.000279 seconds
  Chain 3: 1000 transitions using 10 leapfrog steps per transition would take 2.79 seconds.
  Chain 3: Adjust your expectations accordingly!
  Chain 3: 
  Chain 3: 
  Chain 3: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 3: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 3: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 3: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 3: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 3: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 3: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 3: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 3: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 3: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 3: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 3: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 3: 
  Chain 3:  Elapsed Time: 1.839 seconds (Warm-up)
  Chain 3:                1.908 seconds (Sampling)
  Chain 3:                3.747 seconds (Total)
  Chain 3: 
  
  SAMPLING FOR MODEL 'anon_model' NOW (CHAIN 4).
  Chain 4: 
  Chain 4: Gradient evaluation took 0.000265 seconds
  Chain 4: 1000 transitions using 10 leapfrog steps per transition would take 2.65 seconds.
  Chain 4: Adjust your expectations accordingly!
  Chain 4: 
  Chain 4: 
  Chain 4: Iteration:    1 / 2000 [  0%]  (Warmup)
  Chain 4: Iteration:  200 / 2000 [ 10%]  (Warmup)
  Chain 4: Iteration:  400 / 2000 [ 20%]  (Warmup)
  Chain 4: Iteration:  600 / 2000 [ 30%]  (Warmup)
  Chain 4: Iteration:  800 / 2000 [ 40%]  (Warmup)
  Chain 4: Iteration: 1000 / 2000 [ 50%]  (Warmup)
  Chain 4: Iteration: 1001 / 2000 [ 50%]  (Sampling)
  Chain 4: Iteration: 1200 / 2000 [ 60%]  (Sampling)
  Chain 4: Iteration: 1400 / 2000 [ 70%]  (Sampling)
  Chain 4: Iteration: 1600 / 2000 [ 80%]  (Sampling)
  Chain 4: Iteration: 1800 / 2000 [ 90%]  (Sampling)
  Chain 4: Iteration: 2000 / 2000 [100%]  (Sampling)
  Chain 4: 
  Chain 4:  Elapsed Time: 1.821 seconds (Warm-up)
  Chain 4:                1.868 seconds (Sampling)
  Chain 4:                3.689 seconds (Total)
  Chain 4: 
  Error in `FUN()`:
  ! In path: "/data/gannet/ripley/R/packages/tests-clang/BayesPostEst.Rcheck/tests/testthat/setup.R"
  Caused by error:
  ! package or namespace load failed for 'rstanarm' in dyn.load(file, DLLpath = DLLpath, ...):
   unable to load shared object '/data/gannet/ripley/R/test-clang/rstanarm/libs/rstanarm.so':
    /data/gannet/ripley/R/test-clang/RcppParallel/lib/libtbb.so: file too short
  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(path, env = env, chdir = chdir, wrap = wrap)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       └─base::lapply(r_scripts, source) at tests/testthat/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. ├─base::library(rstanarm)
   20. │ └─base::tryCatch(...)
   21. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   22. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   23. │       └─value[[3L]](cond)
   24. │         └─base::stop(msg, call. = FALSE, domain = NA)
   25. └─base::.handleSimpleError(...)
   26.   └─testthat (local) h(simpleError(msg, call))
   27.     └─rlang::abort(...)
  Execution halted