Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [94s/150s]
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)
  Package version: 3.3.1
  Unicode version: 15.0
  ICU version: 72.1
  Parallel computing: 3 of 32 threads used.
  See https://quanteda.io for tutorials and examples.
  > 
  > # for strong tests for Matrix deprecations
  > options(Matrix.warnDeprecatedCoerce = 2)
  > 
  > ops <- quanteda_options()
  > quanteda_options(reset = TRUE)
  > test_check("quanteda")
  [ FAIL 14 | WARN 0 | SKIP 12 | PASS 3128 ]
  
  ══ Skipped tests (12) ══════════════════════════════════════════════════════════
  • Behaviour changed - consider removing test (1): 'test-tokens.R:128:5'
  • On CRAN (5): 'test-as.dfm.R:158:5', 'test-tokens-word4.R:128:5',
    'test-tokens-word4.R:366:5', 'test-tokens.R:376:5',
    'test-tokens_ngrams.R:121:5'
  • as.numeric(stringi::stri_info()$Unicode.version) > 10 &&
    as.numeric(stringi::stri_info()$ICU.version) > (1): 'test-tokens.R:1047:5'
  • not implemented yet (1): 'test-corpus.R:197:4'
  • requires spacyr installation to work (1): 'test-spacyr-methods.R:40:5'
  • skipping test of option setting when quanteda is not attached (1):
    'test-quanteda_options.R:52:5'
  • we no longer expect these to be the same (1): 'test-tokens.R:773:5'
  • whether these pass depends on the platform (1): 'test-tokens-custom.R:17:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-dfm.R:539:5'): dfm with selection options produces correct output ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'dfm'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-dfm.R:539:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::suppressWarnings(dfm(dfmt, remove = feat, verbose = TRUE))
    7. │ └─base::withCallingHandlers(...)
    8. ├─quanteda::dfm(dfmt, remove = feat, verbose = TRUE)
    9. ├─quanteda:::dfm.dfm(dfmt, remove = feat, verbose = TRUE)
   10. │ ├─quanteda:::catm(...)
   11. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   12. │ │ └─base::paste(..., sep = sep)
   13. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   14. ├─base::stop("getting UseMethod variable 'global' from generic 'dfm'; this is no longer supported")
   15. └─base::.handleSimpleError(...)
   16.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-dfm.R:591:5'): dfm verbose option prints correctly ─────────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'dfm'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(dfm(mydfm, verbose = TRUE), "Creating a dfm from a dfm input") at test-dfm.R:591:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::dfm(mydfm, verbose = TRUE)
    7. ├─quanteda:::dfm.dfm(mydfm, verbose = TRUE)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'dfm'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-dfm.R:1018:5'): dfm verbose = TRUE works as expected ───────────
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'dfm'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-dfm.R:1018:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::suppressWarnings(...)
    7. │ └─base::withCallingHandlers(...)
    8. ├─quanteda::dfm(...)
    9. ├─quanteda:::dfm.dfm(...)
   10. │ ├─quanteda:::catm(...)
   11. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   12. │ │ └─base::paste(..., sep = sep)
   13. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   14. ├─base::stop("getting UseMethod variable 'global' from generic 'dfm'; this is no longer supported")
   15. └─base::.handleSimpleError(...)
   16.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens-word4.R:563:5'): tokens.tokens(x, split_hyphens = TRUE, verbose = TRUE) works as expected  (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens-word4.R:563:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens-word4.R:589:5'): tokens.tokens(x, remove_numbers = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens-word4.R:589:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens-word4.R:604:5'): tokens.tokens(x, remove_punct = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens-word4.R:604:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens-word4.R:624:5'): tokens.tokens(x, remove_symbols = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens-word4.R:624:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens-word4.R:639:5'): tokens.tokens(x, remove_separators = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens-word4.R:639:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens.R:639:5'): tokens.tokens(x, split_hyphens = TRUE, verbose = TRUE) works as expected  (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens.R:639:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens.R:669:5'): tokens.tokens(x, remove_numbers = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens.R:669:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens.R:684:5'): tokens.tokens(x, remove_punct = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens.R:684:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens.R:704:5'): tokens.tokens(x, remove_symbols = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens.R:704:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens.R:719:5'): tokens.tokens(x, remove_separators = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens.R:719:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  ── Error ('test-tokens.R:741:5'): tokens.tokens(x, remove_url = TRUE, verbose = TRUE) works as expected (#1683) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'format': getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-tokens.R:741:5
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─quanteda::tokens(...)
    7. ├─quanteda:::tokens.tokens(...)
    8. │ ├─quanteda:::catm(...)
    9. │ │ ├─base::message(paste(..., sep = sep), appendLF = appendLF)
   10. │ │ └─base::paste(..., sep = sep)
   11. │ └─base::format((proc.time() - global$proc_time)[3], digits = 3)
   12. ├─base::stop("getting UseMethod variable 'global' from generic 'tokens'; this is no longer supported")
   13. └─base::.handleSimpleError(...)
   14.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 14 | WARN 0 | SKIP 12 | PASS 3128 ]
  Error: Test failures
  Execution halted