Running ‘spelling.R’
  Running ‘testthat.R’ [96s/114s]
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")
  Registered S3 methods overwritten by 'quanteda.textstats':
    method                       from    
    [.textstat                   quanteda
    as.data.frame.textstat_proxy quanteda
    as.list.textstat_proxy       quanteda
    head.textstat_proxy          quanteda
    tail.textstat_proxy          quanteda
  > quanteda::quanteda_options(reset = TRUE)
  > 
  > test_check("quanteda.textstats")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On Solaris (1)
  ● Skip until textstat_simil() has been corrected for empty dfms (1)
  ● Skipped because stats::chisq.test is wrong for small-value 2x2 tables (1)
  ● skip until textstat_dist() works correctly for zero-variance documents (1)
  ● until all MA measures are made functional (1)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-textstat_dist.R:47:5): textstat_dist() returns NA for empty dfm ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
    1. testthat::expect_equivalent(...) test-textstat_dist.R:47:4
    8. quanteda.textstats:::textstat_dist.dfm(mt, method = "euclidean")
    9. quanteda.textstats::textstat_proxy(...)
   10. quanteda.textstats:::make_na_matrix(...)
   11. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_dist.R:55:5): textstat_dist() returns NA for empty dfm ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
    1. testthat::expect_equivalent(...) test-textstat_dist.R:55:4
    8. quanteda.textstats:::textstat_dist.dfm(mt, method = "manhattan")
    9. quanteda.textstats::textstat_proxy(...)
   10. quanteda.textstats:::make_na_matrix(...)
   11. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_dist.R:64:5): textstat_dist() returns NA for empty dfm ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
    1. testthat::expect_equivalent(...) test-textstat_dist.R:64:4
    8. quanteda.textstats:::textstat_dist.dfm(mt, method = "canberra")
    9. quanteda.textstats::textstat_proxy(...)
   10. quanteda.textstats:::make_na_matrix(...)
   11. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_dist.R:68:5): textstat_dist() returns NA for empty dfm ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
    1. testthat::expect_equivalent(...) test-textstat_dist.R:68:4
    8. quanteda.textstats:::textstat_dist.dfm(mt, method = "minkowski")
    9. quanteda.textstats::textstat_proxy(...)
   10. quanteda.textstats:::make_na_matrix(...)
   11. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_proxy.R:315:5): use_na is working ────────────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:315:4
   2. quanteda.textstats:::make_na_matrix(...)
   3. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_proxy.R:316:5): use_na is working ────────────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:316:4
   2. quanteda.textstats:::make_na_matrix(...)
   3. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_proxy.R:317:5): use_na is working ────────────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:317:4
   2. quanteda.textstats:::make_na_matrix(...)
   3. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_proxy.R:322:5): use_na is working ────────────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:322:4
   2. quanteda.textstats:::make_na_matrix(...)
   3. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_proxy.R:323:5): use_na is working ────────────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:323:4
   2. quanteda.textstats:::make_na_matrix(...)
   3. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_proxy.R:324:5): use_na is working ────────────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:324:4
   2. quanteda.textstats:::make_na_matrix(...)
   3. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:90:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equivalent(...) test-textstat_simil.R:90:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "correlation")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:94:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:94:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "cosine")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:99:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equivalent(...) test-textstat_simil.R:99:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "jaccard")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:104:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equivalent(...) test-textstat_simil.R:104:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "ejaccard")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:109:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equivalent(...) test-textstat_simil.R:109:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "dice")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:114:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:114:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "edice")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:119:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:119:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "hamman")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:124:5): textstat_simil() returns NA for zero-variance documents ──
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:124:4
   6. quanteda.textstats:::textstat_simil.dfm(mt, method = "simple matching")
   7. quanteda.textstats::textstat_proxy(...)
   8. quanteda.textstats:::make_na_matrix(...)
   9. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:495:5): make_na_matrix is working ────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:495:4
   5. quanteda.textstats:::make_na_matrix(c(5, 4), row = 2L:3L)
   6. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:503:5): make_na_matrix is working ────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:503:4
   5. quanteda.textstats:::make_na_matrix(c(5, 4), col = 3L)
   6. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:511:5): make_na_matrix is working ────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:511:4
   5. quanteda.textstats:::make_na_matrix(c(5, 4), col = 1L:2L, row = 2L:3L)
   6. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:518:5): make_na_matrix is working ────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:518:4
   5. quanteda.textstats:::make_na_matrix(c(5, 4), 2L:3L, c(1L:2L))
   6. Matrix::sparseMatrix(...)
  ── Warning (test-textstat_simil.R:525:5): make_na_matrix is working ────────────
  'giveCsparse' has been deprecated; setting 'repr = "T"' for you
  Backtrace:
   1. testthat::expect_equal(...) test-textstat_simil.R:525:4
   5. quanteda.textstats:::make_na_matrix(c(5, 4), 1L, 3L)
   6. Matrix::sparseMatrix(...)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-textstat_summary.R:11:5): textstat_summary method works ─────────
  Error: error in evaluating the argument 'x' in selecting a method for function 'as.list': error in evaluating the argument 'x' in selecting a method for function 'which': Illegal argument. (U_ILLEGAL_ARGUMENT_ERROR, context=`^\p{emoji_presentation}+$`)
  Backtrace:
       █
    1. ├─quanteda.textstats::textstat_summary(corp) test-textstat_summary.R:11:4
    2. ├─quanteda.textstats:::textstat_summary.corpus(corp)
    3. │ └─quanteda.textstats:::summarize(as.corpus(x), ...)
    4. │   ├─quanteda::convert(...)
    5. │   ├─quanteda::dfm_lookup(...)
    6. │   └─quanteda:::dfm_lookup.dfm(...)
    7. │     └─quanteda:::pattern2list(...)
    8. │       └─quanteda::pattern2id(...)
    9. │         ├─base::as.list(search_regex(pattern[[i]], types_search, case_insensitive))
   10. │         └─quanteda:::search_regex(pattern[[i]], types_search, case_insensitive)
   11. │           ├─base::which(stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive))
   12. │           └─stringi::stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive)
   13. ├─base::.handleSimpleError(...)
   14. │ └─base:::h(simpleError(msg, call))
   15. └─base::.handleSimpleError(...)
   16.   └─base:::h(simpleError(msg, call))
  
  [ FAIL 1 | WARN 23 | SKIP 5 | PASS 475 ]
  Error: Test failures
  Execution halted