Running ‘sleep.R’ [0s/1s]
  Comparing ‘sleep.Rout’ to ‘sleep.Rout.save’ ... OK
  Running ‘testthat.R’ [17s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(estimatr)
  > 
  > test_check("estimatr")
  ── 1. Error: condition_pr_matrix behaves as expected w/ randomizr (@test-conditi
  the condition has length > 1
  1: cond_pr_mat_tests() at testthat/test-condition-pr-matrix.R:264
  2: expect_equal(declaration_to_condition_pr_mat(comp_ra), permutations_to_condition_pr_mat(perms)) at testthat/test-condition-pr-matrix.R:17
  3: quasi_label(enquo(object), label)
  4: eval_bare(get_expr(quo), get_env(quo))
  5: declaration_to_condition_pr_mat(comp_ra)
  
  ── 2. Error: Horvitz-Thompson works in simple case (@test-horvitz-thompson.R#108
  the condition has length > 1
  1: expect_equal(ht_comp <- horvitz_thompson(y ~ z_comp, data = dat, simple = FALSE), 
         horvitz_thompson(y ~ z_comp, data = dat, ra_declaration = comp_decl)) at testthat/test-horvitz-thompson.R:108
  2: quasi_label(enquo(expected), expected.label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: horvitz_thompson(y ~ z_comp, data = dat, ra_declaration = comp_decl)
  5: declaration_to_condition_pr_mat(ra_declaration, condition1, condition2)
  
  ── 3. Error: Horvitz-Thompson works with clustered data (@test-horvitz-thompson.
  the condition has length > 1
  1: horvitz_thompson(y ~ z, data = dat, ra_declaration = clust_crs_decl) at testthat/test-horvitz-thompson.R:175
  2: declaration_to_condition_pr_mat(ra_declaration, condition1, condition2)
  
  ── 4. Failure: Horvitz-Thompson works with missingness (@test-horvitz-thompson.R
  `horvitz_thompson(y ~ z, data = missing_dat, ra_declaration = decl)` threw an error.
  Message: the condition has length > 1
  Class:   simpleError/error/condition
  
  ── 5. Error: Estimating Horvitz-Thompson can be done two ways with blocks (@test
  the condition has length > 1
  1: declaration_to_condition_pr_mat(bl_ra) at testthat/test-horvitz-thompson.R:369
  
  ── 6. Failure: Horvitz-Thompson properly checks arguments and data (@test-horvit
  `horvitz_thompson(...)` threw an error with unexpected message.
  Expected match: "Cannot use `ra_declaration` with any of"
  Actual message: "the condition has length > 1"
  
  ── 7. Error: We match Joel's estimator (@test-replicate-HT-middleton.R#122)  ───
  the condition has length > 1
  1: horvitz_thompson(y ~ z, data = dat, ra_declaration = randomizr::declare_ra(N = nrow(dat), 
         prob = dat$p[1], simple = FALSE), return_condition_pr_mat = T) at testthat/test-replicate-HT-middleton.R:122
  2: declaration_to_condition_pr_mat(ra_declaration, condition1, condition2)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 335 SKIPPED: 5 FAILED: 7
  1. Error: condition_pr_matrix behaves as expected w/ randomizr (@test-condition-pr-matrix.R#264) 
  2. Error: Horvitz-Thompson works in simple case (@test-horvitz-thompson.R#108) 
  3. Error: Horvitz-Thompson works with clustered data (@test-horvitz-thompson.R#175) 
  4. Failure: Horvitz-Thompson works with missingness (@test-horvitz-thompson.R#340) 
  5. Error: Estimating Horvitz-Thompson can be done two ways with blocks (@test-horvitz-thompson.R#369) 
  6. Failure: Horvitz-Thompson properly checks arguments and data (@test-horvitz-thompson.R#434) 
  7. Error: We match Joel's estimator (@test-replicate-HT-middleton.R#122) 
  
  Error: testthat unit tests failed
  Execution halted