Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [123s/157s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 2.0.0
  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")
  Document-feature matrix of: 3 documents, 13 features (56.4% sparse) and 2 docvars.
             features
  docs        this is a sentence . another yet premiere phrase deuxieme three
    textone      1  1 1        2 3       2   1        0      0        0     0
    texttwo      0  0 0        0 2       0   0        1      2        1     0
    textthree    0  1 0        1 1       0   0        0      0        0     1
             features
  docs        really short
    textone        0     0
    texttwo        0     0
    textthree      1     1
  Document-feature matrix of: 3 documents, 13 features (56.4% sparse) and 2 docvars.
             features
  docs        this is a sentence . another yet premiere phrase deuxieme three
    textone      1  1 1        2 3       2   1        0      0        0     0
    texttwo      0  0 0        0 2       0   0        1      2        1     0
    textthree    0  1 0        1 1       0   0        0      0        0     1
             features
  docs        really short
    textone        0     0
    texttwo        0     0
    textthree      1     1
  ── 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#9)  ──
  docvars(corp_reshaped, "country") not equal to factor(c("UK", "UK", "UK", "USA", "USA")).
  Types not compatible: character is not integer
  
         features
  docs    this is        a   sample    another   example
    text1    0  0 0.120412 0.060206 0.00000000 0.0000000
    text2    0  0 0.000000 0.000000 0.08600857 0.1290129
         features
  docs    this is        a   sample    another   example
    text1    0  0 0.120412 0.060206 0.00000000 0.0000000
    text2    0  0 0.000000 0.000000 0.08600857 0.1290129
  ── 3. Failure: tokens_segment works for sentences (@test-tokens_segment.R#16)  ─
  docvars(toks_sent, "title") not equal to as.factor(c("doc1", "doc1", "doc1", "doc2", "doc2")).
  Types not compatible: character is not integer
  
  ── 4. Failure: tokens_segment works for delimiter (@test-tokens_segment.R#39)  ─
  docvars(toks_sent, "title") not equal to as.factor(c("doc1", "doc1", "doc1", "doc2", "doc2")).
  Types not compatible: character is not integer
  
  ── 5. Failure: tokens_segment works for delimiter with extract_pattern = TRUE (@
  docvars(toks_sent, "title") not equal to as.factor(c("doc1", "doc1", "doc1", "doc2", "doc2")).
  Types not compatible: character is not integer
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 2884 | SKIPPED: 27 | WARNINGS: 0 | FAILED: 5 ]
  1. Failure: test lsa converter (@test-convert.R#108) 
  2. Failure: corpus_reshape works for sentences (@test-corpus_reshape.R#9) 
  3. Failure: tokens_segment works for sentences (@test-tokens_segment.R#16) 
  4. Failure: tokens_segment works for delimiter (@test-tokens_segment.R#39) 
  5. Failure: tokens_segment works for delimiter with extract_pattern = TRUE (@test-tokens_segment.R#62) 
  
  Error: testthat unit tests failed
  Execution halted