Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > require(testthat)
  Loading required package: testthat
  > test_check("newsmap")
  Loading required package: newsmap
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 70 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dictionary.R:15:5'): English dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:15:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_en)
   5. └─newsmap:::predict.textmodel_newsmap(map_en)
  ── Error ('test-dictionary.R:38:5'): German dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:38:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_de)
   5. └─newsmap:::predict.textmodel_newsmap(map_de)
  ── Error ('test-dictionary.R:61:5'): test French dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:61:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_fr)
   5. └─newsmap:::predict.textmodel_newsmap(map_fr)
  ── Error ('test-dictionary.R:81:5'): Hebrew dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:81:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_he)
   5. └─newsmap:::predict.textmodel_newsmap(map_he)
  ── Error ('test-dictionary.R:101:5'): Arabic dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:101:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_ar)
   5. └─newsmap:::predict.textmodel_newsmap(map_ar)
  ── Error ('test-dictionary.R:123:5'): Japanese dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:123:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_ja)
   5. └─newsmap:::predict.textmodel_newsmap(map_ja)
  ── Error ('test-dictionary.R:143:5'): Traditional Chinese dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:143:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_zh_tw)
   5. └─newsmap:::predict.textmodel_newsmap(map_zh_tw)
  ── Error ('test-dictionary.R:164:5'): Simplified Chinese dictionary and prediction work correctly ──
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-dictionary.R:164:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map_zh_cn)
   5. └─newsmap:::predict.textmodel_newsmap(map_zh_cn)
  ── Error ('test-predict.R:10:5'): predict() is working ─────────────────────────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-predict.R:10:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map)
   5. └─newsmap:::predict.textmodel_newsmap(map)
  ── Error ('test-predict.R:49:5'): min_n is working ─────────────────────────────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─stats::predict(map, type = "all") at test-predict.R:49:4
   2. └─newsmap:::predict.textmodel_newsmap(map, type = "all")
  ── Error ('test-predict.R:78:5'): min_conf is working ──────────────────────────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-predict.R:78:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─stats::predict(map, confidence = TRUE)
   5. └─newsmap:::predict.textmodel_newsmap(map, confidence = TRUE)
  ── Error ('test-textmodel.R:84:5'): methods for textmodel_newsmap works correctly ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'obj' in selecting a method for function 'unname': 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-textmodel.R:84:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::unname(predict(map))
   5. ├─stats::predict(map)
   6. ├─newsmap:::predict.textmodel_newsmap(map)
   7. └─base::.handleSimpleError(...)
   8.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 70 ]
  Error: Test failures
  Execution halted