Running ‘testthat.R’ [27s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(did2s)
  Loading required package: fixest
  did2s (v1.0.2). For more information on the methodology, visit <https://www.kylebutts.github.io/did2s>
  
  To cite did2s in publications use:
  
    Butts, Kyle (2021).  did2s: Two-Stage Difference-in-Differences
    Following Gardner (2021). R package version 1.0.2.
  
  A BibTeX entry for LaTeX users is
  
    @Manual{,
      title = {did2s: Two-Stage Difference-in-Differences Following Gardner (2021)},
      author = {Kyle Butts},
      year = {2021},
      url = {https://github.com/kylebutts/did2s/},
    }
  
  
  > 
  > test_check("did2s")
  ! curl package not installed, falling back to using `url()`
  Running Two-stage Difference-in-Differences
   - first stage formula `~ 0 | unit + year`
   - second stage formula `~ i(treat, ref = FALSE)`
   - The indicator variable that denotes when treatment is on is `treat`
   - Standard errors will be clustered by `state`
  
  Running Two-stage Difference-in-Differences
   - first stage formula `~ 0 | unit + year`
   - second stage formula `~ i(rel_year, ref = Inf)`
   - The indicator variable that denotes when treatment is on is `treat`
   - Standard errors will be clustered by `state`
  
  Running Two-stage Difference-in-Differences
   - first stage formula `~ 0 | unit + year`
   - second stage formula `~ i(treat, ref = FALSE)`
   - The indicator variable that denotes when treatment is on is `treat`
   - Standard errors will be clustered by `state`
  
  Running Two-stage Difference-in-Differences
   - first stage formula `~ 0 | sid + year`
   - second stage formula `~ i(post, ref = 0)`
   - The indicator variable that denotes when treatment is on is `post`
   - Standard errors will be clustered by `state`
  
  Running Two-stage Difference-in-Differences
   - first stage formula `~ 0 | unit + temp^year`
   - second stage formula `~ i(treat, ref = FALSE)`
   - The indicator variable that denotes when treatment is on is `treat`
   - Standard errors will be clustered by `state`
  
  Running Two-stage Difference-in-Differences
   - first stage formula `~ 0 | unit + year`
   - second stage formula `~ i(treat, ref = FALSE)`
   - The indicator variable that denotes when treatment is on is `treat`
   - Standard errors will be clustered by `state`
  
  Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview.
  Estimating TWFE Model
  Estimating using Gardner (2021)
  Error in h(simpleError(msg, call)) : 
    error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Estimating using Callaway and Sant'Anna (2020)
  Estimating using Sun and Abraham (2020)
  Estimating using Borusyak, Jaravel, Spiess (2021)
  Estimating using Roth and Sant'Anna (2021)
  Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview.
  Estimating TWFE Model
  Estimating using Gardner (2021)
  Error in h(simpleError(msg, call)) : 
    error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Estimating using Callaway and Sant'Anna (2020)
  Estimating using Sun and Abraham (2020)
  Estimating using Borusyak, Jaravel, Spiess (2021)
  Estimating using Roth and Sant'Anna (2021)
  Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview.
  Estimating TWFE Model
  Estimating using Gardner (2021)
  Error in h(simpleError(msg, call)) : 
    error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Estimating using Callaway and Sant'Anna (2020)
  Estimating using Sun and Abraham (2020)
  Estimating using Borusyak, Jaravel, Spiess (2021)
  Estimating using Roth and Sant'Anna (2021)
  Note these estimators rely on different underlying assumptions. See Table 2 of `https://arxiv.org/abs/2109.05913` for an overview.
  [ FAIL 6 | WARN 3 | SKIP 0 | PASS 5 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-did2s.R:15:2'): estimation runs ──────────────────────────────
  `did2s(...)` threw an unexpected error.
  Message: error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did2s.R:15:8
    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. ├─did2s::did2s(...)
    8. │ ├─MatrixExtra::t_deep(...)
    9. │ └─SparseM::solve(...)
   10. └─base::.handleSimpleError(...)
   11.   └─base (local) h(simpleError(msg, call))
  ── Failure ('test-did2s.R:21:2'): estimation runs ──────────────────────────────
  `did2s(...)` threw an unexpected error.
  Message: error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did2s.R:21:8
    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. ├─did2s::did2s(...)
    8. │ ├─MatrixExtra::t_deep(...)
    9. │ └─SparseM::solve(...)
   10. └─base::.handleSimpleError(...)
   11.   └─base (local) h(simpleError(msg, call))
  ── Failure ('test-did2s.R:27:2'): estimation runs ──────────────────────────────
  `did2s(...)` threw an unexpected error.
  Message: error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did2s.R:27:8
    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. ├─did2s::did2s(...)
    8. │ ├─MatrixExtra::t_deep(...)
    9. │ └─SparseM::solve(...)
   10. └─base::.handleSimpleError(...)
   11.   └─base (local) h(simpleError(msg, call))
  ── Failure ('test-did2s.R:33:2'): estimation runs ──────────────────────────────
  `did2s(...)` threw an unexpected error.
  Message: error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did2s.R:33:8
    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. ├─did2s::did2s(...)
    8. │ ├─MatrixExtra::t_deep(...)
    9. │ └─SparseM::solve(...)
   10. └─base::.handleSimpleError(...)
   11.   └─base (local) h(simpleError(msg, call))
  ── Failure ('test-did2s.R:41:2'): estimation runs ──────────────────────────────
  `did2s(...)` threw an unexpected error.
  Message: error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-did2s.R:41:8
    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. ├─did2s::did2s(...)
    8. │ ├─MatrixExtra::t_deep(...)
    9. │ └─SparseM::solve(...)
   10. └─base::.handleSimpleError(...)
   11.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-did2s.R:49:3'): estimates match previous runs ──────────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'a' in selecting a method for function 'solve': 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─did2s::did2s(...) at test-did2s.R:49:2
   2. │ ├─MatrixExtra::t_deep(...)
   3. │ └─SparseM::solve(...)
   4. └─base::.handleSimpleError(...)
   5.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 6 | WARN 3 | SKIP 0 | PASS 5 ]
  Error: Test failures
  Execution halted