Running 'spelling.R' [0s]
  Running 'testthat.R' [40s]
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")
  > library("quanteda.textstats")
  > quanteda::quanteda_options(reset = TRUE)
  > 
  > # return an error for all Matrix deprecations
  > options(Matrix.warnDeprecatedCoerce = 2)
  > 
  > test_check("quanteda.textstats")
  [ FAIL 2 | WARN 0 | SKIP 2 | PASS 474 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • Skipped because stats::chisq.test is wrong for small-value 2x2 tables (1):
    'test-textstat_keyness.R:59:3'
  • until all MA measures are made functional (1): 'test-textstat_lexdiv.R:398:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-textstat_proxy.R:76:5'): test textstat_proxy correlation similarity ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': "crossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. ├─quanteda.textstats (local) test_simil(test_mt, "correlation", "documents") at test-textstat_proxy.R:76:4
   2. │ ├─base::as.matrix(...) at test-textstat_proxy.R:21:4
   3. │ └─proxy::simil(...) at test-textstat_proxy.R:21:4
   4. │   └─proxy::dist(...)
   5. │     └─proxy (local) .proxy_external(R_apply_dist_matrix, x, NULL)
   6. │       └─base::do.call(...)
   7. ├─proxy (local) `<fn>`(`<dbl>`, `<dbl>`)
   8. └─base::.handleSimpleError(...)
   9.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-textstat_simil.R:46:5'): textstat_simil() returns NA for empty dfm ──
  Error in `crossprod(X, Y)`: "crossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. ├─testthat::expect_equivalent(...) at test-textstat_simil.R:46:4
   2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─proxy::simil(as.matrix(mt), method = "correlation")
   5. │ └─proxy::dist(...)
   6. │   └─proxy (local) .proxy_external(R_apply_dist_matrix, x, NULL)
   7. │     └─base::do.call(...)
   8. └─proxy (local) `<fn>`(`<dbl>`, `<dbl>`)
  
  [ FAIL 2 | WARN 0 | SKIP 2 | PASS 474 ]
  Error: Test failures
  Execution halted