Running ‘spelling.R’
  Running ‘testthat.R’ [268s/365s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 2.1.1
  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: dictionary constructor works with wordstat format (@test-dictionari
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_equivalent(...)
   5. quanteda:::dictionary.default(file = "../data/dictionaries/mary.cat")
   6. quanteda:::read_dict_wordstat(file, encoding)
   7. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 3. Error: dictionary constructor works with LIWC format (@test-dictionaries.R
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_equivalent(...)
   5. quanteda:::dictionary.default(file = "../data/dictionaries/mary.dic")
   6. quanteda:::read_dict_liwc(file, encoding)
   7. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 4. Error: read a dictionary with NA as a key (@test-dictionaries.R#61)  ─────
  encoding `auto` is no longer supported
  Backtrace:
   1. quanteda::dictionary(file = "../data/dictionaries/issue-459.cat")
   2. quanteda:::dictionary.default(file = "../data/dictionaries/issue-459.cat")
   3. quanteda:::read_dict_wordstat(file, encoding)
   4. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 5. Error: dictionary works with different encoding (@test-dictionaries.R#72) 
  encoding `auto` is no longer supported
  Backtrace:
   1. base::suppressWarnings(...)
   7. quanteda:::dictionary.default(...)
   8. quanteda:::read_dict_wordstat(file, encoding)
   9. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 6. Error: indexing for dictionary objects works (@test-dictionaries.R#113)  ─
  encoding `auto` is no longer supported
  Backtrace:
   1. quanteda::dictionary(file = "../data/dictionaries/laver-garry.cat")
   2. quanteda:::dictionary.default(file = "../data/dictionaries/laver-garry.cat")
   3. quanteda:::read_dict_wordstat(file, encoding)
   4. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 7. Error: dictionary constructor works with LIWC format w/doubled terms (@tes
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_equivalent(...)
   5. quanteda:::dictionary.default(file = "../data/dictionaries/mary_doubleterm.dic")
   6. quanteda:::read_dict_liwc(file, encoding)
   7. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 8. Error: dictionary constructor works with LIWC format zero padding (@test-d
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_equivalent(...)
   5. quanteda:::dictionary.default(file = "../data/dictionaries/mary_zeropadding.dic")
   6. quanteda:::read_dict_liwc(file, encoding)
   7. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 9. Error: dictionary constructor reports mssing cateogries in LIWC format (@t
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_message(...)
   7. quanteda:::dictionary.default(file = "../data/dictionaries/mary_missingcat.dic")
   8. quanteda:::read_dict_liwc(file, encoding)
   9. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 10. Error: dictionary constructor works with LIWC format w/multiple tabs, spa
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_equivalent(...)
   5. quanteda:::dictionary.default(file = "../data/dictionaries/mary_multipletabs.dic")
   6. quanteda:::read_dict_liwc(file, encoding)
   7. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 11. Error: dictionary constructor works with LIWC format w/extra codes (@test
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_message(...)
   7. quanteda:::dictionary.default(file = "../data/dictionaries/liwc_extracodes.dic")
   8. quanteda:::read_dict_liwc(file, encoding)
   9. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 12. Error: dictionary constructor works with LIWC format w/extra codes and ne
  encoding `auto` is no longer supported
  Backtrace:
   1. testthat::expect_message(...)
   7. quanteda:::dictionary.default(file = "../data/dictionaries/liwc_hierarchical.dic")
   8. quanteda:::read_dict_liwc(file, encoding)
   9. stringi::stri_read_lines(path, encoding = encoding, fallback_encoding = "windows-1252")
  
  ── 13. 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))
  
  ── 14. 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))
  
  ── 15. Failure: test nsentence (@test-nfunctions.R#6)  ─────────────────────────
  nsentence(txt) not identical to c(doc1 = 2L, doc2 = 2L).
  1/2 mismatches
  [1] 4 - 2 == 2
  
  ── 16. 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
  
  ── 17. 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
  
  ── 18. 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: 2976 | SKIPPED: 26 | WARNINGS: 27 | FAILED: 18 ]
  1. Error: corpus_segment works with blank before tag (@test-corpus_segment.R#55) 
  2. Error: dictionary constructor works with wordstat format (@test-dictionaries.R#35) 
  3. Error: dictionary constructor works with LIWC format (@test-dictionaries.R#50) 
  4. Error: read a dictionary with NA as a key (@test-dictionaries.R#61) 
  5. Error: dictionary works with different encoding (@test-dictionaries.R#72) 
  6. Error: indexing for dictionary objects works (@test-dictionaries.R#113) 
  7. Error: dictionary constructor works with LIWC format w/doubled terms (@test-dictionaries.R#285) 
  8. Error: dictionary constructor works with LIWC format zero padding (@test-dictionaries.R#293) 
  9. Error: dictionary constructor reports mssing cateogries in LIWC format (@test-dictionaries.R#301) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted