Running ‘spelling.R’
  Running ‘testthat.R’ [258s/318s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 2.1.0
  Parallel computing: 2 of 16 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")
  ── 1. Error: corpus_segment works with blank before tag (@test-corpus_segment.R#
  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': Start of codes indicating failure. (U_ILLEGAL_ARGUMENT_ERROR)
  Backtrace:
    1. base::summary(corp_seg)
   18. base::.handleSimpleError(...)
   19. base:::h(simpleError(msg, call))
  
  ── 2. Error: adding summary info works (@test-meta.R#126)  ─────────────────────
  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': Start of codes indicating failure. (U_ILLEGAL_ARGUMENT_ERROR)
  Backtrace:
    1. quanteda:::add_summary_metadata(corp)
   19. base::.handleSimpleError(...)
   20. base:::h(simpleError(msg, call))
  
  ── 3. Error: adding extended summary information works (@test-meta.R#181)  ─────
  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': Start of codes indicating failure. (U_ILLEGAL_ARGUMENT_ERROR)
  Backtrace:
    1. quanteda:::add_summary_metadata(corp, extended = TRUE)
   19. base::.handleSimpleError(...)
   20. base:::h(simpleError(msg, call))
  
  ── 4. Error: textstat_summary method works (@test-textstat_summary.R#12)  ──────
  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': Start of codes indicating failure. (U_ILLEGAL_ARGUMENT_ERROR)
  Backtrace:
    1. quanteda::textstat_summary(corp, cache = FALSE)
   15. base::.handleSimpleError(...)
   16. base:::h(simpleError(msg, call))
  
  ── 5. Error: summary chache counts hashtag and emoji correctly (@test-textstat_s
  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': Start of codes indicating failure. (U_ILLEGAL_ARGUMENT_ERROR)
  Backtrace:
    1. quanteda::textstat_summary(toks, cache = FALSE)
   15. base::.handleSimpleError(...)
   16. base:::h(simpleError(msg, call))
  
  ── 6. Error: textstat_summary chaching is working (@test-textstat_summary.R#95) 
  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': Start of codes indicating failure. (U_ILLEGAL_ARGUMENT_ERROR)
  Backtrace:
    1. quanteda::textstat_summary(corp, cache = TRUE)
   15. base::.handleSimpleError(...)
   16. base:::h(simpleError(msg, call))
  
  ── 7. Error: summary chache is updated (@test-textstat_summary.R#121)  ─────────
  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': Start of codes indicating failure. (U_ILLEGAL_ARGUMENT_ERROR)
  Backtrace:
    1. quanteda::textstat_summary(...)
   15. base::.handleSimpleError(...)
   16. base:::h(simpleError(msg, call))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 3028 | SKIPPED: 21 | WARNINGS: 17 | FAILED: 7 ]
  1. Error: corpus_segment works with blank before tag (@test-corpus_segment.R#55) 
  2. Error: adding summary info works (@test-meta.R#126) 
  3. Error: adding extended summary information works (@test-meta.R#181) 
  4. Error: textstat_summary method works (@test-textstat_summary.R#12) 
  5. Error: summary chache counts hashtag and emoji correctly (@test-textstat_summary.R#85) 
  6. Error: textstat_summary chaching is working (@test-textstat_summary.R#95) 
  7. Error: summary chache is updated (@test-textstat_summary.R#121) 
  
  Error: testthat unit tests failed
  Execution halted