Running ‘spelling.R’
  Running ‘testthat.R’ [253s/293s]
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 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': Illegal argument. (U_ILLEGAL_ARGUMENT_ERROR, context=`^\p{emoji_presentation}+$`)
  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': Illegal argument. (U_ILLEGAL_ARGUMENT_ERROR, context=`^\p{emoji_presentation}+$`)
  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': Illegal argument. (U_ILLEGAL_ARGUMENT_ERROR, context=`^\p{emoji_presentation}+$`)
  Backtrace:
    1. quanteda:::add_summary_metadata(corp, extended = TRUE)
   19. base::.handleSimpleError(...)
   20. base:::h(simpleError(msg, call))
  
  ── 4. Failure: test nsentence (@test-nfunctions.R#6)  ──────────────────────────
  nsentence(txt) not identical to c(doc1 = 2L, doc2 = 2L).
  1/2 mismatches
  [1] 4 - 2 == 2
  
  ── 5. Failure: test nsentence (@test-nfunctions.R#7)  ──────────────────────────
  nsentence(corpus(txt)) not identical to c(doc1 = 2L, doc2 = 2L).
  1/2 mismatches
  [1] 4 - 2 == 2
  
  ── 6. Failure: test nsentence (@test-nfunctions.R#8)  ──────────────────────────
  nsentence(tokens(txt, what = "sentence")) not identical to c(doc1 = 2L, doc2 = 2L).
  1/2 mismatches
  [1] 4 - 2 == 2
  
  ── 7. Error: textstat_summary method works (@test-textstat_summary.R#11)  ──────
  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::textstat_summary(corp, cache = FALSE)
   15. base::.handleSimpleError(...)
   16. base:::h(simpleError(msg, call))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 3017 | SKIPPED: 27 | WARNINGS: 7 | 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. Failure: test nsentence (@test-nfunctions.R#6) 
  5. Failure: test nsentence (@test-nfunctions.R#7) 
  6. Failure: test nsentence (@test-nfunctions.R#8) 
  7. Error: textstat_summary method works (@test-textstat_summary.R#11) 
  
  Error: testthat unit tests failed
  Execution halted