Running 'spelling.R' [0s]
  Running 'testthat.R' [84s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > Sys.setenv("_R_CHECK_LENGTH_1_CONDITION_" = TRUE)
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 3.3.1
  Unicode version: 13.0
  ICU version: 69.1
  Parallel computing: 2 of 96 threads used.
  See https://quanteda.io for tutorials and examples.
  > 
  > # for strong tests for Matrix deprecations
  > options(Matrix.warnDeprecatedCoerce = 2)
  > 
  > ops <- quanteda_options()
  > quanteda_options(reset = TRUE)
  > test_check("quanteda")
  [ FAIL 16 | WARN 0 | SKIP 14 | PASS 3055 ]
  
  ══ Skipped tests (14) ══════════════════════════════════════════════════════════
  • Behaviour changed - consider removing test (1): 'test-tokens.R:128:5'
  • On CRAN (4): 'test-tokens-word4.R:128:5', 'test-tokens-word4.R:366:5',
    'test-tokens.R:376:5', 'test-tokens_ngrams.R:121:5'
  • On Windows (3): 'test-as.dfm.R:157:5', 'test-corpus_segment.R:83:5',
    'test-dictionaries.R:69:3'
  • as.numeric(stringi::stri_info()$Unicode.version) > 10 &&
    as.numeric(stringi::stri_info()$ICU.version) > (1): 'test-tokens.R:1047:5'
  • not implemented yet (1): 'test-corpus.R:197:4'
  • requires spacyr installation to work (1): 'test-spacyr-methods.R:40:5'
  • skipping test of option setting when quanteda is not attached (1):
    'test-quanteda_options.R:52:5'
  • we no longer expect these to be the same (1): 'test-tokens.R:773:5'
  • whether these pass depends on the platform (1): 'test-tokens-custom.R:17:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-attributes.R:29:5'): unit attributes are set correctly ─────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-attributes.R:29:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quanteda::fcm(dfm(toks_chunk))
   5. └─quanteda:::fcm.dfm(dfm(toks_chunk))
  ── Error ('test-fcm.R:45:5'): fcm works with dfm and tokens in the same way ────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(toks, context = "document") at test-fcm.R:45:4
   2. └─quanteda:::fcm.tokens(toks, context = "document")
   3.   ├─quanteda::fcm(...)
   4.   └─quanteda:::fcm.dfm(...)
  ── Error ('test-fcm.R:159:5'): ordered setting: boolean ────────────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(dfm(toks), count = "boolean", tri = TRUE) at test-fcm.R:159:4
   2. └─quanteda:::fcm.dfm(dfm(toks), count = "boolean", tri = TRUE)
  ── Error ('test-fcm.R:204:5'): fcm.dfm works same as fcm.tokens ────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-fcm.R:204:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quanteda::fcm(toks, context = "document")
   5. └─quanteda:::fcm.tokens(toks, context = "document")
   6.   ├─quanteda::fcm(...)
   7.   └─quanteda:::fcm.dfm(...)
  ── Error ('test-fcm.R:240:5'): fcm print works as expected ─────────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(dfmt) at test-fcm.R:240:4
   2. └─quanteda:::fcm.dfm(dfmt)
  ── Error ('test-fcm.R:275:5'): fcm works the same for different object types ───
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(expect_equivalent(fcm(txt), fcm(corpus(txt)))) at test-fcm.R:275:4
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_equivalent(fcm(txt), fcm(corpus(txt)))
    4. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    5. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    6. ├─quanteda::fcm(txt)
    7. └─quanteda:::fcm.character(txt)
    8.   ├─quanteda::fcm(corpus(x), ...)
    9.   └─quanteda:::fcm.corpus(corpus(x), ...)
   10.     ├─quanteda::fcm(tokens(x), ...)
   11.     └─quanteda:::fcm.tokens(tokens(x), ...)
   12.       ├─quanteda::fcm(...)
   13.       └─quanteda:::fcm.dfm(...)
  ── Error ('test-fcm.R:316:5'): arithmetic/linear operation works with dfm ──────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(dfm(tokens(c(d1 = "a a b", d2 = "a b b c", d3 = "c c d")))) at test-fcm.R:316:4
   2. └─quanteda:::fcm.dfm(...)
  ── Error ('test-fcm.R:378:5'): fcm feature names have encoding ─────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(tokens(c(文書１ = "あ い い う", 文書２ = "え え え お"))) at test-fcm.R:378:4
   2. └─quanteda:::fcm.tokens(...)
   3.   ├─quanteda::fcm(...)
   4.   └─quanteda:::fcm.dfm(...)
  ── Error ('test-fcm.R:393:5'): fcm raise nicer error message, #1267 ────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(dfm(tokens(txt))) at test-fcm.R:393:4
   2. └─quanteda:::fcm.dfm(dfm(tokens(txt)))
  ── Error ('test-fcm.R:418:3'): margin is correct (#2176) ───────────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(toks) at test-fcm.R:418:2
   2. └─quanteda:::fcm.tokens(toks)
   3.   ├─quanteda::fcm(...)
   4.   └─quanteda:::fcm.dfm(...)
  ── Error ('test-fcm.R:445:5'): unused arguments works for fcm (#2103) ──────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(fcm(toks, notanargument = TRUE), "notanargument argument is not used") at test-fcm.R:445:4
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─quanteda::fcm(toks, notanargument = TRUE)
   7. └─quanteda:::fcm.tokens(toks, notanargument = TRUE)
   8.   ├─quanteda::fcm(...)
   9.   └─quanteda:::fcm.dfm(...)
  ── Error ('test-fcm_methods.R:2:1'): (code run outside of `test_that()`) ───────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(toks_test, context = "document") at test-fcm_methods.R:2:0
   2. └─quanteda:::fcm.tokens(toks_test, context = "document")
   3.   ├─quanteda::fcm(...)
   4.   └─quanteda:::fcm.dfm(...)
  ── Error ('test-indexing.R:34:5'): test fcm indexing ───────────────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(...) at test-indexing.R:34:4
   2. └─quanteda:::fcm.tokens(...)
   3.   ├─quanteda::fcm(...)
   4.   └─quanteda:::fcm.dfm(...)
  ── Error ('test-object-robustness.R:54:5'): fcm is/as methods work with old and new formats ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(dfm(tokens(data_corpus_inaugural[1:2]))) at test-object-robustness.R:54:4
   2. └─quanteda:::fcm.dfm(dfm(tokens(data_corpus_inaugural[1:2])))
  ── Error ('test-operators-for-core-objects.R:86:5'): fcm core operators work for v2 ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─quanteda::fcm(dfm_trim(dfmat, min_termfreq = 20)) at test-operators-for-core-objects.R:86:4
   2. └─quanteda:::fcm.dfm(dfm_trim(dfmat, min_termfreq = 20))
  ── Error ('test-tokens_select.R:108:5'): fcm works on tokens containing padding ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-tokens_select.R:108:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─quanteda::featnames(fcm(toks))
   5. ├─quanteda::fcm(toks)
   6. └─quanteda:::fcm.tokens(toks)
   7.   ├─quanteda::fcm(...)
   8.   └─quanteda:::fcm.dfm(...)
  
  [ FAIL 16 | WARN 0 | SKIP 14 | PASS 3055 ]
  Error: Test failures
  Execution halted