Running 'spelling.R' [0s]
  Running 'testthat.R' [41s]
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 ===============================================================
  * 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)
  
  == Failed tests ================================================================
  -- Error (test-textstat.R:76:5): test textstat_* keeps the class after extraction --
  Error: is.character(types) is not TRUE
  Backtrace:
      x
   1. +-quanteda.textstats::textstat_select(frq, "poli*") test-textstat.R:76:4
   2. \-quanteda.textstats:::textstat_select.textstat(frq, "poli*")
   3.   +-base::unlist(pattern2id(pattern, x[[1]], valuetype, case_insensitive))
   4.   \-quanteda::pattern2id(pattern, x[[1]], valuetype, case_insensitive)
   5.     \-base::stopifnot(is.character(types))
  -- Failure (test-textstat_frequency.R:5:5): test textstat_frequency without groups --
  textstat_frequency(dfm1, ties_method = "random") not equivalent to data.frame(...).
  Component "feature": 'current' is not a factor
  Component "group": 'current' is not a factor
  -- Failure (test-textstat_frequency.R:14:5): test textstat_frequency without groups --
  textstat_frequency(dfm1, n = 2, ties_method = "random") not equivalent to ...[].
  Component "feature": 'current' is not a factor
  Component "group": 'current' is not a factor
  -- Failure (test-textstat_frequency.R:36:5): test textstat_frequency without groups --
  textstat_frequency(quanteda::dfm(corp1), groups = grp1, ties_method = "random") not equivalent to data.frame(...).
  Component "feature": 'current' is not a factor
  Component "group": 'current' is not a factor
  -- Failure (test-textstat_frequency.R:46:5): test textstat_frequency without groups --
  textstat_frequency(...) not equivalent to data.frame(...).
  Component "feature": 'current' is not a factor
  Component "group": 'current' is not a factor
  -- Failure (test-textstat_frequency.R:67:5): test textstat_frequency works with weights --
  textstat_frequency(dfm1weighted, ties_method = "random") not equivalent to data.frame(...).
  Component "feature": 'current' is not a factor
  Component "group": 'current' is not a factor
  -- Failure (test-textstat_frequency.R:88:5): test textstat_frequency ties methods defaults work (min) --
  textstat_frequency(dfmat)[, c("feature", "rank")] not equivalent to data.frame(...).
  Component "feature": 'current' is not a factor
  -- Failure (test-textstat_frequency.R:105:5): test textstat_frequency with groups and weighted dfm (#1646) --
  textstat_frequency(dfmat, groups = c(1, 2, 2), force = TRUE) not equivalent to data.frame(...).
  Component "feature": 'current' is not a factor
  Component "group": 'current' is not a factor
  -- Failure (test-textstat_readability.R:177:5): man/textstat_readability returns NA for empty documents --
  textstat_readability(txt, "Flesch") not equivalent to data.frame(...).
  Component "document": 'current' is not a factor
  -- Failure (test-textstat_readability.R:183:5): man/textstat_readability returns NA for empty documents --
  textstat_readability(txt, "Flesch", min_sentence_length = 5) not equivalent to data.frame(...).
  Component "document": 'current' is not a factor
  
  [ FAIL 10 | WARN 0 | SKIP 4 | PASS 479 ]
  Error: Test failures
  Execution halted