Running ‘testthat.R’ [204s/276s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(clusteredinterference)
  > 
  > test_check("clusteredinterference")
  ── 1. Failure: Target ests are identical  ──────────────────────────────────────
  old_ests$estimate not equal to new_ests$estimate.
  12/18 mismatches (average diff: 0.0124)
  [1]   0.1333 -  0.1495 == -0.01624
  [2]   0.0803 -  0.0896 == -0.00927
  [3]   0.2615 -  0.2921 == -0.03057
  [4]   0.2059 -  0.2304 == -0.02450
  [5]   0.1358 -  0.1521 == -0.01631
  [6]   0.0588 -  0.0658 == -0.00700
  [8]  -0.0530 - -0.0600 ==  0.00697
  [9]   0.0530 -  0.0600 == -0.00697
  [12] -0.0556 - -0.0617 ==  0.00607
  ...
  
  ── 2. Failure: Target SEs are identical  ───────────────────────────────────────
  old_ests$se not equal to new_ests$se.
  12/18 mismatches (average diff: 0.00269)
  [1]  0.0173 - 0.0224 == -0.005144
  [2]  0.0147 - 0.0177 == -0.002991
  [3]  0.0712 - 0.0740 == -0.002761
  [4]  0.0742 - 0.0773 == -0.003112
  [5]  0.0511 - 0.0559 == -0.004784
  [6]  0.0271 - 0.0302 == -0.003108
  [8]  0.0109 - 0.0125 == -0.001559
  [9]  0.0109 - 0.0125 == -0.001559
  [12] 0.0135 - 0.0145 == -0.000976
  ...
  
  ── 3. Failure: MCFP estimates are identical  ───────────────────────────────────
  baseline_effects$parameters[[3]] not equal to pfx$parameters[[3]].
  Component "trt_vecs_mats": Component 1: Mean relative difference: 2
  Component "trt_vecs_mats": Component 2: Mean relative difference: 2
  Component "trt_vecs_mats": Component 3: Mean relative difference: 2
  Component "trt_vecs_mats": Component 4: Mean relative difference: 2
  Component "trt_vecs_mats": Component 5: Mean relative difference: 2
  Component "trt_vecs_mats": Component 6: Mean relative difference: 2
  Component "trt_vecs_mats": Component 7: Mean relative difference: 2
  Component "trt_vecs_mats": Component 8: Mean relative difference: 2
  Component "trt_vecs_mats": Component 9: Mean relative difference: 2
  ...
  
  ── 4. Failure: target estimates are identical  ─────────────────────────────────
  baseline_effects$parameters[[4]] not equal to pfx$parameters[[4]][, -(8:9)].
  Component "estimate": Mean relative difference: 0.1191792
  
  ── 5. Failure: Var mats [1] are identical  ─────────────────────────────────────
  baseline_effects$variance_matrices[[1]] not equal to pfx$variance_matrices[[1]].
  Component "Meat_mat": Mean relative difference: 0.004267684
  Component "Bread_mat": Mean relative difference: 0.002061623
  
  ── 6. Failure: Var mats [1]$Meat_mat are identical  ────────────────────────────
  baseline_effects$variance_matrices[[1]]$Meat_mat not equal to pfx$variance_matrices[[1]]$Meat_mat.
  208/361 mismatches (average diff: 0.344)
  [2]   2.68e+02 - 268.31787 ==  1.24e-05
  [6]  -1.29e-04 -   0.00874 == -8.87e-03
  [7]   2.07e-02 -   0.01870 ==  1.98e-03
  [8]   1.17e-02 -  -0.01914 ==  3.09e-02
  [9]   3.95e-02 -  -0.02164 ==  6.11e-02
  [10] -1.06e-02 -  -0.00943 == -1.19e-03
  [11]  1.33e-02 -   0.01262 ==  6.68e-04
  [13] -5.14e-02 -  -0.02372 == -2.76e-02
  [14] -7.73e-02 -   0.06014 == -1.37e-01
  ...
  
  ── 7. Failure: Var mats [1]$Bread_mat are identical  ───────────────────────────
  baseline_effects$variance_matrices[[1]]$Bread_mat not equal to pfx$variance_matrices[[1]]$Bread_mat.
  70/361 mismatches (average diff: 0.478)
  [1]      6.448 -     6.448 ==  1.07e-06
  [2]    255.964 -   255.963 ==  7.37e-06
  [3]     43.972 -    43.972 ==  2.40e-06
  [4]     -0.906 -    -0.906 ==  3.11e-07
  [19]    -1.700 -    -1.914 ==  2.14e-01
  [20]   255.964 -   255.963 ==  7.37e-06
  [21] 11352.702 - 11352.702 ==  2.86e-04
  [22]  1748.779 -  1748.779 ==  4.84e-05
  [23]   -44.914 -   -44.914 == -2.49e-06
  ...
  
  ── 8. Failure: sampleVecs4Trt() returns same treatment vectors to evaluate  ────
  vec_dfm_no_alphas[, 1:4] not identical to `vec_dfm_no_alphas_orig`.
  Component "trt_vecs_mats": Component 5: Mean relative difference: 2
  Component "trt_vecs_mats": Component 8: Mean relative difference: 2
  Component "trt_vecs_mats": Component 9: Mean relative difference: 2
  Component "trt_vecs_mats": Component 10: Mean relative difference: 2
  Component "trt_vecs_mats": Component 12: Mean relative difference: 2
  Component "trt_vecs_mats": Component 13: Mean relative difference: 2
  Component "trt_vecs_mats": Component 14: Mean relative difference: 2
  Component "trt_vecs_mats": Component 17: Mean relative difference: 2
  Component "trt_vecs_mats": Component 18: Mean relative difference: 2
  ...
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 26 SKIPPED: 0 FAILED: 8
  1. Failure: Target ests are identical 
  2. Failure: Target SEs are identical 
  3. Failure: MCFP estimates are identical 
  4. Failure: target estimates are identical 
  5. Failure: Var mats [1] are identical 
  6. Failure: Var mats [1]$Meat_mat are identical 
  7. Failure: Var mats [1]$Bread_mat are identical 
  8. Failure: sampleVecs4Trt() returns same treatment vectors to evaluate 
  
  Error: testthat unit tests failed
  Execution halted