Running 'testthat.R' [322s]
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.3461161
  Component "Bread_mat": Mean relative difference: 0.1557063
  
  -- 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.
  202/361 mismatches (average diff: 0.355)
  [6]  -0.000129 -  0.00874 == -0.008866
  [7]   0.020681 -  0.01870 ==  0.001980
  [8]   0.011746 - -0.01914 ==  0.030881
  [9]   0.039510 - -0.02164 ==  0.061150
  [10] -0.010620 - -0.00943 == -0.001188
  [11]  0.013291 -  0.01262 ==  0.000668
  [13] -0.051373 - -0.02372 == -0.027649
  [14] -0.077321 -  0.06014 == -0.137461
  [15] -0.013758 - -0.05345 ==  0.039687
  ...
  
  -- 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.
  48/361 mismatches (average diff: 0.698)
  [19]  -1.700 -  -1.91 ==  0.214
  [25]   9.167 -   9.46 == -0.296
  [26]   5.802 -   4.84 ==  0.958
  [27]   1.864 -  -2.92 ==  4.785
  [28] -14.109 - -20.56 ==  6.448
  [29]   2.596 -   2.98 == -0.381
  [30]  -0.026 -  -1.52 ==  1.492
  [32]   0.956 -   1.52 == -0.568
  [33]  -9.504 -  -9.72 ==  0.214
  ...
  
  -- 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