Running ‘testthat.R’ [91s/83s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  quanteda version 0.9.9.65
  Using 31 of 32 cores for parallel computing
  
  Attaching package: 'quanteda'
  
  The following object is masked from 'package:utils':
  
      View
  
  > 
  > test_check("quanteda")
  <<DocumentTermMatrix (documents: 4, terms: 4)>>
  Non-/sparse entries: 8/8
  Sparsity           : 50%
  Maximal term length: 5
  Weighting          : term frequency (tf)
  Sample             :
        Terms
  Docs   feat1 feat2 feat3 feat4
    doc1     1     0     2     0
    doc2     0     0     1     2
    doc3     0     0     0     0
    doc4     1     2     3     4
  <<DocumentTermMatrix (documents: 4, terms: 4)>>
  Non-/sparse entries: 8/8
  Sparsity           : 50%
  Maximal term length: 5
  Weighting          : term frequency (tf)
  Sample             :
        Terms
  Docs   feat1 feat2 feat3 feat4
    doc1     1     0     2     0
    doc2     0     0     1     2
    doc3     1     0     0     0
    doc4     1     0     3     4
  <<DocumentTermMatrix (documents: 3, terms: 3)>>
  Non-/sparse entries: 9/0
  Sparsity           : 0%
  Maximal term length: 5
  Weighting          : term frequency (tf)
  Sample             :
        Terms
  Docs   feat1 feat2 feat3
    doc1     1     4     7
    doc2     2     5     8
    doc3     3     6     9
     ... lowercasing
     ... indexing documents: 2 documents
     ... indexing features: 14 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 2 x 6 sparse dfm
     ... complete. 
  Elapsed time: 0.014 seconds.
     ... lowercasing
     ... indexing documents: 2 documents
     ... indexing features: 14 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 2 x 15 sparse dfm
     ... complete. 
  Elapsed time: 0.035 seconds.
     ... lowercasing
     ... indexing documents: 2 documents
     ... indexing features: 14 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 2 x 15 sparse dfm
     ... complete. 
  Elapsed time: 0.032 seconds.
  NULL
  NULL
  NULL
  1. Failure: test plot.kwic facet order parameter (@test-plots.R#71) ------------
  all(plot_docnames[order(plot_docnames)] == plot_docnames) isn't false.
  
  
  2. Failure: test plot.kwic keeps order of keywords passed (@test-plots.R#81) ---
  as.character(unique(ggplot2::ggplot_build(p)$layout$panel_layout$keyword)) not equal to c("people", "american").
  Lengths differ: 0 vs 2
  
  
  Creating a dfm from a corpus ...
     ... tokenizing texts
     ... lowercasing
     ... found 14 documents, 5,058 features
     ... created a 14 x 5,058 sparse dfm
     ... complete. 
  Elapsed time: 0.001 seconds.
  Creating a dfm from a corpus ...
     ... tokenizing texts
     ... lowercasing
     ... found 14 documents, 5,058 features
     ... created a 14 x 5,058 sparse dfm
     ... complete. 
  Elapsed time: 0 seconds.
  testthat results ================================================================
  OK: 1033 SKIPPED: 15 FAILED: 2
  1. Failure: test plot.kwic facet order parameter (@test-plots.R#71) 
  2. Failure: test plot.kwic keeps order of keywords passed (@test-plots.R#81) 
  
  Error: testthat unit tests failed
  Execution halted