Running ‘testthat.R’ [23s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(rdss)
  > 
  > test_check("rdss")
  Loading required package: Rcpp
  This is rstanarm version 2.32.1
  - See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
  - Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
  - For execution on a local, multicore CPU with excess RAM we recommend calling
    options(mc.cores = parallel::detectCores())
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:DeclareDesign':
  
      vars
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Loading required package: sandwich
  Loading required package: lmtest
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  Loading required package: ggplot2
  
  Attaching package: 'ggplot2'
  
  The following object is masked from 'package:DeclareDesign':
  
      vars
  
  Loading required package: survey
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  cjoint: AMCE Estimator for Conjoint Experiments
  Version: 2.1.1
  Authors: Soubhik Barari, Elissa Berwick, Jens Hainmueller, Daniel Hopkins, Sean Liu, Anton Strezhnev, Teppei Yamamoto
  
  Loading required package: metadat
  Loading required package: numDeriv
  
  Loading the 'metafor' package (version 4.8-0). For an
  introduction to the package please type: help(metafor)
  
  
  Attaching package: 'metafor'
  
  The following object is masked from 'package:rstanarm':
  
      se
  
  Loading required namespace: marginaleffects
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 7 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • {interference} is not installed (1): 'test-experiments-over-networks.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-bayesian-regression.R:22:3'): tidy_stan works ────────────────
  `simulate_design(declaration_9.3, sims = 1, future.seed = FALSE)` threw an unexpected error.
  Message: Error in step 4 (estimator):
  	Error: Constant variable(s) found: age
  
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-bayesian-regression.R:22:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─DeclareDesign::simulate_design(declaration_9.3, sims = 1, future.seed = FALSE)
    8.   └─base::mapply(...)
    9.     └─DeclareDesign (local) `<fn>`(design = dots[[1L]][[1L]], sims = dots[[2L]][[1L]], future.seed = dots[[3L]][[1L]])
   10.       └─DeclareDesign:::future_lapply(...)
   11.         └─base::lapply(...)
   12.           └─DeclareDesign (local) FUN(X[[i]], ...)
   13.             ├─DeclareDesign:::run_design_internal(design)
   14.             └─DeclareDesign:::run_design_internal.design(design)
   15.               └─DeclareDesign:::next_step(step, current_df, i)
   16.                 └─base::tryCatch(...)
   17.                   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   18.                     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   19.                       └─value[[3L]](cond)
  
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 7 ]
  Error: Test failures
  Execution halted