Running ‘testthat.R’ [9s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(didimputation)
  Loading required package: fixest
  Loading required package: data.table
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  > 
  > test_check("didimputation")
  ! curl package not installed, falling back to using `url()`
  Saving _problems/test-did_imputation-24.R
  Saving _problems/test-did_imputation-37.R
  Saving _problems/test-did_imputation-51.R
  Saving _problems/test-did_imputation-63.R
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-did_imputation.R:15:3'): estimation runs ─────────────────────
  Expected `did_imputation(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    attempt access index 22/22 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did_imputation.R:15:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─didimputation::did_imputation(...)
    8.   └─base::lapply(...)
    9.     └─didimputation (local) FUN(X[[i]], ...)
   10.       └─didimputation:::se_inner(data, v_star, wtr, cluster_var, gname)
   11.         ├─...[]
   12.         └─data.table:::`[.data.table`(...)
  ── Failure ('test-did_imputation.R:26:3'): estimation runs ─────────────────────
  Expected `did_imputation(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    attempt access index 62/62 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did_imputation.R:26:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─didimputation::did_imputation(...)
    8.   └─base::lapply(...)
    9.     └─didimputation (local) FUN(X[[i]], ...)
   10.       └─didimputation:::se_inner(data, v_star, wtr, cluster_var, gname)
   11.         ├─...[]
   12.         └─data.table:::`[.data.table`(...)
  ── Failure ('test-did_imputation.R:39:3'): estimation runs ─────────────────────
  Expected `did_imputation(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    attempt access index 62/62 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did_imputation.R:39:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─didimputation::did_imputation(...)
    8.   └─base::lapply(...)
    9.     └─didimputation (local) FUN(X[[i]], ...)
   10.       └─didimputation:::se_inner(data, v_star, wtr, cluster_var, gname)
   11.         ├─...[]
   12.         └─data.table:::`[.data.table`(...)
  ── Failure ('test-did_imputation.R:53:3'): estimation runs ─────────────────────
  Expected `did_imputation(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    attempt access index 192/192 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did_imputation.R:53:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─didimputation::did_imputation(...)
    8.   └─base::lapply(...)
    9.     └─didimputation (local) FUN(X[[i]], ...)
   10.       └─didimputation:::se_inner(data, v_star, wtr, cluster_var, gname)
   11.         ├─...[]
   12.         └─data.table:::`[.data.table`(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted