Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [145s/193s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 1.5.2
  Parallel computing: 2 of 32 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. Failure: test lsa converter (@test-convert.R#108)  ───────────────────────
  `lsamat` not equivalent to `lsamat2`.
  Mean relative difference: 2
  
  ── 2. Failure: corpus_reshape works for sentences (@test-corpus_reshape.R#10)  ─
  docvars(mycorpus_reshaped, "country") not equal to factor(c("UK", "UK", "UK", "USA", "USA")).
  Types not compatible: character is not integer
  
  ── 3. Failure: corpus constructor works on v2 corpus (@test-future.R#36)  ──────
  suppressWarnings(docvars(corpus(corpv2))) not identical to data.frame(...).
  Component "letter_factor": 'current' is not a factor
  
  ── 4. Failure: corpus constructor works on v2 corpus (@test-future.R#44)  ──────
  suppressWarnings(...) not identical to data.frame(...).
  Component "letter_factor": 'current' is not a factor
  
  ── 5. Failure: tokens_segment works for sentences (@test-tokens_segment.R#19)  ─
  docvars(mytoks_sent, "title") not equal to as.factor(c("doc1", "doc1", "doc1", "doc2", "doc2")).
  Types not compatible: character is not integer
  
  ── 6. Failure: tokens_segment works for delimiter (@test-tokens_segment.R#44)  ─
  docvars(mytoks_sent, "title") not equal to as.factor(c("doc1", "doc1", "doc1", "doc2", "doc2")).
  Types not compatible: character is not integer
  
  ── 7. Failure: tokens_segment works for delimiter with extract_pattern = TRUE (@
  docvars(mytoks_sent, "title") not equal to as.factor(c("doc1", "doc1", "doc1", "doc2", "doc2")).
  Types not compatible: character is not integer
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 2955 | SKIPPED: 22 | WARNINGS: 140 | FAILED: 7 ]
  1. Failure: test lsa converter (@test-convert.R#108) 
  2. Failure: corpus_reshape works for sentences (@test-corpus_reshape.R#10) 
  3. Failure: corpus constructor works on v2 corpus (@test-future.R#36) 
  4. Failure: corpus constructor works on v2 corpus (@test-future.R#44) 
  5. Failure: tokens_segment works for sentences (@test-tokens_segment.R#19) 
  6. Failure: tokens_segment works for delimiter (@test-tokens_segment.R#44) 
  7. Failure: tokens_segment works for delimiter with extract_pattern = TRUE (@test-tokens_segment.R#69) 
  
  Error: testthat unit tests failed
  Execution halted