Running ‘testthat.R’ [66s/99s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DeclareDesign)
  Loading required package: randomizr
  Loading required package: fabricatr
  Loading required package: estimatr
  > 
  > test_check("DeclareDesign")
  ── 1. Failure: custom estimand has label (@test-estimands.R#55)  ───────────────
  my_estimand_custom(df) not identical to structure(...).
  Component "estimand_label": Modes: character, numeric
  Component "estimand_label": Attributes: < target is NULL, current is list >
  Component "estimand_label": target is character, current is factor
  
  ── 2. Failure: warning for wrong class estimator label (@test-get-estimates.R#61
  `draw_estimates(design)` did not produce any warnings.
  
  ── 3. Failure: warning for wrong class estimator label (@test-get-estimates.R#73
  `draw_estimands(design)` did not produce any warnings.
  
  ── 4. Failure: custom tidy method (@test-model.R#194)  ─────────────────────────
  draw_estimates(des) not equal to structure(...).
  Component "term": Modes: character, numeric
  Component "term": Attributes: < target is NULL, current is list >
  Component "term": target is character, current is factor
  
  ── 5. Failure: designs with factors in diagnosands_df do not produce warnings (@
  `reshape_diagnosis(...)` produced warnings.
  
  ── 6. Failure: internal testing function was built correctly (@test-scaffolding.
  w(NULL) not identical to structure(...).
  Component "BLNK": Modes: character, numeric
  Component "BLNK": Attributes: < target is NULL, current is list >
  Component "BLNK": target is character, current is factor
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 475 | SKIPPED: 5 | WARNINGS: 2 | FAILED: 6 ]
  1. Failure: custom estimand has label (@test-estimands.R#55) 
  2. Failure: warning for wrong class estimator label (@test-get-estimates.R#61) 
  3. Failure: warning for wrong class estimator label (@test-get-estimates.R#73) 
  4. Failure: custom tidy method (@test-model.R#194) 
  5. Failure: designs with factors in diagnosands_df do not produce warnings (@test-reshape-diagnosis.R#101) 
  6. Failure: internal testing function was built correctly (@test-scaffolding.R#43) 
  
  Error: testthat unit tests failed
  Execution halted