Running ‘testthat.R’ [14s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(emdi)
  > 
  > test_check("emdi")
  ── 1. Failure: Does the direct estimation in emdi return the point and variance 
  `arpr_all_naive` not equal to direct_all_naive$MSE[, c("Domain", "Head_Count")].
  Component "Head_Count": Mean relative difference: 1.062683
  
  ── 2. Failure: Does the direct estimation in emdi return the point and variance 
  `gini_all_naive` not equal to direct_all_naive$MSE[, c("Domain", "Gini")].
  Component "Gini": Mean relative difference: 0.2618995
  
  ── 3. Failure: Does the direct estimation in emdi return the point and variance 
  `qsr_all_naive` not equal to direct_all_naive$MSE[, c("Domain", "Quintile_Share")].
  Component "Quintile_Share": Mean relative difference: 0.3454306
  
  ── 4. Failure: Does the direct estimation in emdi return the point and variance 
  `gini_all_cali` not equal to direct_all_cali$MSE[, c("Domain", "Gini")].
  Component "Gini": Mean relative difference: 0.2601102
  
  ── 5. Failure: Does the direct estimation in emdi return the point and variance 
  `qsr_all_cali` not equal to direct_all_cali$MSE[, c("Domain", "Quintile_Share")].
  Component "Quintile_Share": Mean relative difference: 0.3524725
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 21 SKIPPED: 0 FAILED: 5
  1. Failure: Does the direct estimation in emdi return the point and variance 
            estimates when a naive bootstrap is used? (@test_direct_estimation.R#35) 
  2. Failure: Does the direct estimation in emdi return the point and variance 
            estimates when a naive bootstrap is used? (@test_direct_estimation.R#48) 
  3. Failure: Does the direct estimation in emdi return the point and variance 
            estimates when a naive bootstrap is used? (@test_direct_estimation.R#61) 
  4. Failure: Does the direct estimation in emdi return the point and variance 
            estimates when a calibrated bootstrap is used? (@test_direct_estimation.R#102) 
  5. Failure: Does the direct estimation in emdi return the point and variance 
            estimates when a calibrated bootstrap is used? (@test_direct_estimation.R#113) 
  
  Error: testthat unit tests failed
  Execution halted