Running 'spelling.R' [0s]
  Running 'testthat.R' [66s]
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")
  -- Skip (test-textstat_dist.R:75:5): textstat_dist() returns NA for zero-varianc
  Reason: skip until textstat_dist() works correctly for zero-variance documents
  
  -- Skip (test-textstat_keyness.R:58:5): keyness_chi2 internal methods are equiva
  Reason: Skipped because stats::chisq.test is wrong for small-value 2x2 tables
  
  -- FAILURE (test-textstat_keyness.R:401:3): comparisons with old measures work -
  textstat_keyness(dfmat, measure = "lr", old = TRUE) not identical to textstat_keyness(dfmat, measure = "lr", old = FALSE).
  Objects equal but not identical
  
  -- FAILURE (test-textstat_keyness.R:405:3): comparisons with old measures work -
  textstat_keyness(dfmat, measure = "pmi", old = TRUE) not identical to textstat_keyness(dfmat, measure = "pmi", old = FALSE).
  Objects equal but not identical
  
  -- Skip (test-textstat_lexdiv.R:375:5): textstat_lexdiv.tokens works right when 
  Reason: until all MA measures are made functional
  
  -- Skip (test-textstat_simil.R:39:5): textstat_simil() returns NA for empty dfm 
  Reason: Skip until textstat_simil() has been corrected for empty dfms
  
  -- 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)
  
  == testthat results  ===========================================================
  FAILURE (test-textstat_keyness.R:401:3): comparisons with old measures work
  FAILURE (test-textstat_keyness.R:405:3): comparisons with old measures work
  
  [ FAIL 2 | WARN 0 | SKIP 4 | PASS 519 ]
  Error: Test failures
  Execution halted