Running 'testthat.R' [103s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 1.1.1
  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
  
  > 
  > ops <- quanteda_options()
  > quanteda_options(reset = TRUE)
  > 
  > test_check("quanteda")
  -- 1. Error: dfm_lookup raises error when dictionary has multi-word entries (@te
  no slot of name "factors" for this object of class "dtCMatrix"
  1: expect_equal(featnames(dfm_lookup(dfm(tokens_ngrams(toks, n = 2, concatenator = " ")), 
         dictionary = dict)), c("Country")) at testthat/test-dfm_lookup.R:103
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: featnames(dfm_lookup(dfm(tokens_ngrams(toks, n = 2, concatenator = " ")), dictionary = dict))
  5: dfm_lookup(dfm(tokens_ngrams(toks, n = 2, concatenator = " ")), dictionary = dict)
  6: dfm_lookup.dfm(dfm(tokens_ngrams(toks, n = 2, concatenator = " ")), dictionary = dict)
  7: dfm_select(dfm_compress(x, margin = "features"), as.dfm(rbind(structure(rep(0, length(keys)), 
         names = keys))))
  8: dfm_select.dfm(dfm_compress(x, margin = "features"), as.dfm(rbind(structure(rep(0, 
         length(keys)), names = keys))))
  9: as.dfm(rbind(structure(rep(0, length(keys)), names = keys)))
  10: as.dfm.matrix(rbind(structure(rep(0, length(keys)), names = keys)))
  11: as_dfm_constructor(x)
  12: new("dfm", x, docvars = data.frame(row.names = rownames(x)))
  13: initialize(value, ...)
  14: initialize(value, ...)
  15: callNextMethod()
  16: .nextMethod(.Object = .Object, ... = ...)
  17: `as<-`(`*tmp*`, Classi, value = <S4 object of class structure("dtCMatrix", package = "Matrix")>)
  18: asMethod(object, Class, value)
  19: slot(value, what)
  
  == testthat results  ===========================================================
  OK: 1938 SKIPPED: 27 FAILED: 1
  1. Error: dfm_lookup raises error when dictionary has multi-word entries (@test-dfm_lookup.R#103) 
  
  Error: testthat unit tests failed
  Execution halted