Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ri2)
  Loading required package: randomizr
  Loading required package: estimatr
  > 
  > test_check("ri2")
  ── 1. Error: Basic Two Arm Trial (@test-blocked.R#16)  ─────────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(formula = Y ~ Z, declaration = declaration, sharp_hypothesis = 0, data = dat, 
         sims = 10) at testthat/test-blocked.R:16
  2: conduct_ri_ATE(formula = formula, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, studentize = studentize, IPW = IPW, IPW_weights = IPW_weights, 
         sampling_weights = sampling_weights, permutation_matrix = permutation_matrix, 
         data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 2. Error: Compare to ri (@test-compare-ri.R#43)  ────────────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(y ~ Z, sharp_hypothesis = 0, declaration = declaration, data = data.frame(y, 
         Z)) at testthat/test-compare-ri.R:43
  2: conduct_ri_ATE(formula = formula, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, studentize = studentize, IPW = IPW, IPW_weights = IPW_weights, 
         sampling_weights = sampling_weights, permutation_matrix = permutation_matrix, 
         data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 3. Error: main effect f test (@test-f_stat.R#14)  ───────────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(model_1 = Y ~ 1, model_2 = Y ~ Z, declaration = declaration, assignment = "Z", 
         sharp_hypothesis = 0, data = df, sims = 100) at testthat/test-f_stat.R:14
  2: conduct_ri_f(model_1 = model_1, model_2 = model_2, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, IPW = IPW, IPW_weights = IPW_weights, sampling_weights = sampling_weights, 
         permutation_matrix = permutation_matrix, data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 4. Error: interaction test under constant fx (@test-f_stat.R#43)  ───────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(model_1 = Y ~ Z + X, model_2 = Y ~ Z + X + Z * X, declaration = declaration, 
         assignment = "Z", sharp_hypothesis = ate_obs, data = df, sims = 100) at testthat/test-f_stat.R:43
  2: conduct_ri_f(model_1 = model_1, model_2 = model_2, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, IPW = IPW, IPW_weights = IPW_weights, sampling_weights = sampling_weights, 
         permutation_matrix = permutation_matrix, data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 5. Error: Basic Two Arm Trial (@test-gg-in-text.R#34)  ──────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(y ~ d, declaration = declaration, assignment = "d", sharp_hypothesis = 0, 
         data = table_2.2) at testthat/test-gg-in-text.R:34
  2: conduct_ri_ATE(formula = formula, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, studentize = studentize, IPW = IPW, IPW_weights = IPW_weights, 
         sampling_weights = sampling_weights, permutation_matrix = permutation_matrix, 
         data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 6. Error: Basic Multi Arm Trial (@test-multi-arm.R#14)  ─────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(formula = Y ~ Z, declaration = declaration, assignment = "Z", sharp_hypothesis = 0, 
         data = df, sims = 50) at testthat/test-multi-arm.R:14
  2: conduct_ri_ATE(formula = formula, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, studentize = studentize, IPW = IPW, IPW_weights = IPW_weights, 
         sampling_weights = sampling_weights, permutation_matrix = permutation_matrix, 
         data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 7. Error: Basic Two Arm Trial (@test-progress_bar.R#15)  ────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(formula = Y ~ Z, declaration = declaration, assignment = "Z", sharp_hypothesis = 0, 
         data = df, sims = 100, progress_bar = TRUE) at testthat/test-progress_bar.R:15
  2: conduct_ri_ATE(formula = formula, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, studentize = studentize, IPW = IPW, IPW_weights = IPW_weights, 
         sampling_weights = sampling_weights, permutation_matrix = permutation_matrix, 
         data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 8. Error: Studentize (@test-studentize.R#16)  ───────────────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(formula = Y ~ Z, declaration = declaration, assignment = "Z", sharp_hypothesis = 0, 
         studentize = TRUE, data = df, sims = 100) at testthat/test-studentize.R:16
  2: conduct_ri_ATE(formula = formula, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, studentize = studentize, IPW = IPW, IPW_weights = IPW_weights, 
         sampling_weights = sampling_weights, permutation_matrix = permutation_matrix, 
         data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 9. Error: Basic Two Arm Trial (@test-two-arm.R#15)  ─────────────────────────
  'tidy.lm_robust' is not an exported object from 'namespace:estimatr'
  1: conduct_ri(formula = Y ~ Z, declaration = declaration, assignment = "Z", sharp_hypothesis = 0, 
         data = df, sims = 100) at testthat/test-two-arm.R:15
  2: conduct_ri_ATE(formula = formula, assignment = assignment, declaration = declaration, 
         sharp_hypothesis = sharp_hypothesis, studentize = studentize, IPW = IPW, IPW_weights = IPW_weights, 
         sampling_weights = sampling_weights, permutation_matrix = permutation_matrix, 
         data = data, sims = sims, progress_bar = progress_bar)
  3: estimatr::tidy.lm_robust
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 11 SKIPPED: 0 FAILED: 9
  1. Error: Basic Two Arm Trial (@test-blocked.R#16) 
  2. Error: Compare to ri (@test-compare-ri.R#43) 
  3. Error: main effect f test (@test-f_stat.R#14) 
  4. Error: interaction test under constant fx (@test-f_stat.R#43) 
  5. Error: Basic Two Arm Trial (@test-gg-in-text.R#34) 
  6. Error: Basic Multi Arm Trial (@test-multi-arm.R#14) 
  7. Error: Basic Two Arm Trial (@test-progress_bar.R#15) 
  8. Error: Studentize (@test-studentize.R#16) 
  9. Error: Basic Two Arm Trial (@test-two-arm.R#15) 
  
  Error: testthat unit tests failed
  Execution halted