Running ‘spelling.R’
  Running ‘testthat.R’ [91s/91s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 2.1.2
  Parallel computing: 2 of 24 threads used.
  See https://quanteda.io for tutorials and examples.
  
  Attaching package: 'quanteda'
  
  The following object is masked from 'package:utils':
  
      View
  
  > 
  > Sys.setenv("_R_CHECK_LENGTH_1_CONDITION_" = TRUE)
  > 
  > ops <- quanteda_options()
  > quanteda_options(reset = TRUE)
  > 
  > test_check("quanteda")
  ── Skip (test-as.dfm.R:150:5): as.data.frame.dfm handles irregular feature names
  Reason: On CRAN
  
  ── ERROR (test-convert.R:12:5): test STM package converter ─────────────────────
  Error: length(class) == 1L is not TRUE
  Backtrace:
      █
   1. └─stm::textProcessor(...) test-convert.R:12:4
   2.   └─tm::VCorpus(tm::VectorSource(documents), readerControl = list(language = language))
   3.     └─utils::getS3method("pGetElem", class(x), TRUE)
   4.       └─base::stopifnot(is.character(class), length(class) == 1L)
  
  ── ERROR (test-convert.R:37:5): test STM package converter with metadata ───────
  Error: length(class) == 1L is not TRUE
  Backtrace:
      █
   1. └─stm::textProcessor(...) test-convert.R:37:4
   2.   └─tm::VCorpus(tm::VectorSource(documents), readerControl = list(language = language))
   3.     └─utils::getS3method("pGetElem", class(x), TRUE)
   4.       └─base::stopifnot(is.character(class), length(class) == 1L)
  
  ── ERROR (test-convert.R:57:5): test STM package converter with metadata w/zero-
  Error: length(class) == 1L is not TRUE
  Backtrace:
      █
   1. └─stm::textProcessor(...) test-convert.R:57:4
   2.   └─tm::VCorpus(tm::VectorSource(documents), readerControl = list(language = language))
   3.     └─utils::getS3method("pGetElem", class(x), TRUE)
   4.       └─base::stopifnot(is.character(class), length(class) == 1L)
  
  ── ERROR (test-convert.R:68:5): test tm package converter ──────────────────────
  Error: length(class) == 1L is not TRUE
  Backtrace:
      █
   1. ├─tm::DocumentTermMatrix(...) test-convert.R:68:4
   2. │ ├─base::t(TermDocumentMatrix(x, control))
   3. │ └─tm::TermDocumentMatrix(x, control)
   4. └─tm::VCorpus(tm::VectorSource(char_tolower(mytexts)))
   5.   └─utils::getS3method("pGetElem", class(x), TRUE)
   6.     └─base::stopifnot(is.character(class), length(class) == 1L)
  
  ── ERROR (test-corpus.R:188:5): test corpus constructor works for VCorpus with o
  Error: length(class) == 1L is not TRUE
  Backtrace:
      █
   1. └─tm::VCorpus(VectorSource(data_corpus_inaugural[2])) test-corpus.R:188:4
   2.   └─utils::getS3method("pGetElem", class(x), TRUE)
   3.     └─base::stopifnot(is.character(class), length(class) == 1L)
  
  ── Skip (test-corpus.R:196:4): test corpus constructor works for complex VCorpus
  Reason: not implemented yet
  
  ── Warning (test-corpus.R:376:5): corpus handles NA correctly (#1372, #1969) ───
  NA is replaced by empty string
  
  ── Warning (test-corpus.R:383:5): corpus handles NA correctly (#1372, #1969) ───
  NA is replaced by empty string
  
  ── Skip (test-directionchange.R:17:5): tokens_tortl works. ─────────────────────
  Reason: NEEDS TO BE FIXED
  
  ── Skip (test-docvars.R:218:5): metadoc for tokens works ───────────────────────
  Reason: Until we resolve metadoc issues
  
  ── Skip (test-fcm.R:309:5): as.igraph.fcm works with window ────────────────────
  Reason: On Linux
  
  ── Warning (test-kwic.R:10:5): test attr(kwic, 'ntoken') with un-named texts ───
  NA is replaced by empty string
  
  ── Skip (test-quanteda_options.R:58:5): quanteda functions work if package is no
  Reason: skipping test of option setting when quanteda is not attached
  
  ── Skip (test-spacyr-methods.R:42:5): spacy_parse/tokenize work ────────────────
  Reason: requires spacyr installation to work
  
  ── Skip (test-textplot.R:119:5): test textplot_wordcloud comparison works ──────
  Reason: On CRAN
  
  ── Skip (test-textplot.R:209:5): multiple patterns display correctly in textplot
  Reason: For interactive visual inspection only
  
  ── Skip (test-textplot.R:262:5): phrasal patterns display correctly in textplot_
  Reason: For interactive visual inspection only
  
  ── Skip (test-textplot_network.R:37:5): test textplot_network font-selection ───
  Reason: On Linux
  
  ── Skip (test-textstat_dist.R:45:5): textstat_dist() returns NA for empty dfm ──
  Reason: until textstat_dist() works correctly for empty dfms
  
  ── 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
  
  ── Skip (test-textstat_lexdiv.R:258:5): textstat_lexdiv.tokens raises errors if 
  Reason: defaults may have changed
  
  ── Skip (test-textstat_lexdiv.R:373:5): textstat_lexdiv.tokens works right when 
  Reason: until all MA measures are made functional
  
  ── Skip (test-textstat_simil.R:37:5): textstat_simil() returns NA for empty dfm 
  Reason: Skip until textstat_simil() has been corrected for empty dfms
  
  ── Skip (test-tokens.R:129:5): tokens works with unusual hiragana #554 ─────────
  Reason: On CRAN
  
  ── Skip (test-tokens.R:429:5): tokens remove whitespace with combining character
  Reason: On CRAN
  
  ── Skip (test-tokens.R:464:5): test that features remove by tokens.tokens is com
  Reason: ngrams disabled in new tokens()
  
  ── Warning (test-tokens.R:523:5): tokens works as expected with NA, and blanks ─
  NA is replaced by empty string
  
  ── Warning (test-tokens.R:527:5): tokens works as expected with NA, and blanks ─
  NA is replaced by empty string
  
  ── Warning (test-tokens.R:535:5): tokens works as expected with NA, and blanks ─
  NA is replaced by empty string
  
  ── Warning (test-tokens.R:539:5): tokens works as expected with NA, and blanks ─
  NA is replaced by empty string
  
  ── Skip (test-tokens.R:844:5): test that what = "word" works the same as "word2"
  Reason: we no longer expect these to be the same
  
  ── Skip (test-tokens.R:1118:5): emails address is preserved ────────────────────
  Reason: as.numeric(stringi::stri_info()$Unicode.version) > 10 && as.numeric(stringi::stri_info()$ICU.version) >   is TRUE
      61.1  is TRUE
  
  ── Skip (test-tokens_ngrams.R:100:5): test there is no competition between threa
  Reason: On CRAN
  
  ── Skip (test-utils.R:102:5): check_font is working ────────────────────────────
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● For interactive visual inspection only (2)
  ● NEEDS TO BE FIXED (1)
  ● On CRAN (6)
  ● On Linux (2)
  ● Skip until textstat_simil() has been corrected for empty dfms (1)
  ● Skipped because stats::chisq.test is wrong for small-value 2x2 tables (1)
  ● Until we resolve metadoc issues (1)
  ● as.numeric(stringi::stri_info()$Unicode.version) > 10 && as.numeric(stringi::stri_info()$ICU.version) >   is TRUE
      61.1  is TRUE (1)
  ● defaults may have changed (1)
  ● ngrams disabled in new tokens() (1)
  ● not implemented yet (1)
  ● requires spacyr installation to work (1)
  ● skip until textstat_dist() works correctly for zero-variance documents (1)
  ● skipping test of option setting when quanteda is not attached (1)
  ● until all MA measures are made functional (1)
  ● until textstat_dist() works correctly for empty dfms (1)
  ● we no longer expect these to be the same (1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-convert.R:12:5): test STM package converter
  ERROR (test-convert.R:37:5): test STM package converter with metadata
  ERROR (test-convert.R:57:5): test STM package converter with metadata w/zero-count document
  ERROR (test-convert.R:68:5): test tm package converter
  ERROR (test-corpus.R:188:5): test corpus constructor works for VCorpus with one document (#445)
  Warning (test-corpus.R:376:5): corpus handles NA correctly (#1372, #1969)
  Warning (test-corpus.R:383:5): corpus handles NA correctly (#1372, #1969)
  Warning (test-kwic.R:10:5): test attr(kwic, 'ntoken') with un-named texts
  Warning (test-tokens.R:523:5): tokens works as expected with NA, and blanks
  Warning (test-tokens.R:527:5): tokens works as expected with NA, and blanks
  Warning (test-tokens.R:535:5): tokens works as expected with NA, and blanks
  Warning (test-tokens.R:539:5): tokens works as expected with NA, and blanks
  
  [ FAIL 5 | WARN 7 | SKIP 24 | PASS 3054 ]
  Error: Test failures
  Execution halted