Running 'testthat.R' [55s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(spmodel)
  > 
  > test_check("spmodel")
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 594 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-spglm.R:24:3'): generics work spglm point data ─────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-spglm.R:24:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─generics::augment(spmod1, newdata = newexdata)
   5. └─spmodel:::augment.spglm(spmod1, newdata = newexdata)
   6.   ├─stats::predict(...)
   7.   └─spmodel:::predict.spglm(...)
   8.     └─base::lapply(...)
   9.       └─spmodel (local) FUN(X[[i]], ...)
  ── Error ('test-spglm.R:175:3'): generics work spglm point data with missing ───
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-spglm.R:175:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─generics::augment(spmod1, newdata = spmod1$newdata)
   5. └─spmodel:::augment.spglm(spmod1, newdata = spmod1$newdata)
   6.   ├─stats::predict(...)
   7.   └─spmodel:::predict.spglm(...)
   8.     └─base::lapply(...)
   9.       └─spmodel (local) FUN(X[[i]], ...)
  ── Error ('test-spglm.R:325:3'): generics work spglm polygon data with missing ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-spglm.R:325:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─generics::augment(spmod1, newdata = spmod1$newdata)
   5. └─spmodel:::augment.spglm(spmod1, newdata = spmod1$newdata)
   6.   ├─stats::predict(...)
   7.   └─spmodel:::predict.spglm(...)
   8.     └─base::lapply(...)
   9.       └─spmodel (local) FUN(X[[i]], ...)
  ── Error ('test-splm.R:24:3'): generics work splm point data ───────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-splm.R:24:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─generics::augment(spmod1, newdata = newexdata)
   5. └─spmodel:::augment.splm(spmod1, newdata = newexdata)
   6.   ├─stats::predict(...)
   7.   └─spmodel:::predict.splm(...)
   8.     └─base::lapply(...)
   9.       └─spmodel (local) FUN(X[[i]], ...)
  ── Error ('test-splm.R:167:3'): generics work splm point data with missing ─────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-splm.R:167:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─generics::augment(spmod1, newdata = spmod1$newdata)
   5. └─spmodel:::augment.splm(spmod1, newdata = spmod1$newdata)
   6.   ├─stats::predict(...)
   7.   └─spmodel:::predict.splm(...)
   8.     └─base::lapply(...)
   9.       └─spmodel (local) FUN(X[[i]], ...)
  ── Error ('test-splm.R:310:3'): generics work splm polygon data with missing ───
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-splm.R:310:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─generics::augment(spmod1, newdata = spmod1$newdata)
   5. └─spmodel:::augment.splm(spmod1, newdata = spmod1$newdata)
   6.   ├─stats::predict(...)
   7.   └─spmodel:::predict.splm(...)
   8.     └─base::lapply(...)
   9.       └─spmodel (local) FUN(X[[i]], ...)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 594 ]
  Error: Test failures
  Execution halted