Running ‘testthat.R’ [144s/154s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 1.2.0
  Parallel computing: 2 of 24 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: bootstrap_dfm works with character and corpus objects (@test-bootst
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: bootstrap_dfm(mycorpus, n = 10, verbose = TRUE) at testthat/test-bootstrap.R:11
  2: bootstrap_dfm.corpus(mycorpus, n = 10, verbose = TRUE)
  3: bootstrap_dfm(dfm(corp_sentences, ...), n = n, ..., verbose = verbose)
  4: bootstrap_dfm.dfm(dfm(corp_sentences, ...), n = n, ..., verbose = verbose)
  5: dt[, `:=`(temp, sample(1:.N, replace = TRUE)), by = id]
  6: `[.data.table`(dt, , `:=`(temp, sample(1:.N, replace = TRUE)), by = id)
  
  ── 2. Error: bootstrap_dfm works as planned with dfm (@test-bootstrap.R#40)  ───
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: bootstrap_dfm(mydfm, n = 3, verbose = FALSE) at testthat/test-bootstrap.R:40
  2: bootstrap_dfm.dfm(mydfm, n = 3, verbose = FALSE)
  3: dt[, `:=`(temp, sample(1:.N, replace = TRUE)), by = id]
  4: `[.data.table`(dt, , `:=`(temp, sample(1:.N, replace = TRUE)), by = id)
  
  ── 3. Error: test corpus_sample to see if with grouping, documents can be oversa
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: expect_equal(sum(stringi::stri_detect_regex(docnames(corpus_sample(sentcorpus, replace = TRUE, 
         by = "_document")), "^one")), 3) at testthat/test-corpus_sample.R:22
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: stringi::stri_detect_regex(docnames(corpus_sample(sentcorpus, replace = TRUE, by = "_document")), 
         "^one")
  5: docnames(corpus_sample(sentcorpus, replace = TRUE, by = "_document"))
  6: corpus_sample(sentcorpus, replace = TRUE, by = "_document")
  7: corpus_sample.corpus(sentcorpus, replace = TRUE, by = "_document")
  8: dt[, `:=`(temp, sample(1:.N, replace = TRUE)), by = docID]
  9: `[.data.table`(dt, , `:=`(temp, sample(1:.N, replace = TRUE)), by = docID)
  
  ── 4. Error: (unknown) (@test-textstat.R#9)  ───────────────────────────────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: textstat_frequency(mt) at testthat/test-textstat.R:9
  2: textstat_frequency.dfm(mt)
  3: temp[, `:=`(rank, 1:.N), by = group]
  4: `[.data.table`(temp, , `:=`(rank, 1:.N), by = group)
  
  ── 5. Error: test textstat_frequency without groups (@test-textstat_frequency.R#
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: expect_equivalent(textstat_frequency(dfm1), data.frame(feature = c("a", "d", "b", 
         "c"), frequency = c(6, 4, 2, 1), rank = 1:4, docfreq = c(3, 2, 1, 1), group = rep("all", 
         4), stringsAsFactors = FALSE)) at testthat/test-textstat_frequency.R:5
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: textstat_frequency(dfm1)
  5: textstat_frequency.dfm(dfm1)
  6: temp[, `:=`(rank, 1:.N), by = group]
  7: `[.data.table`(temp, , `:=`(rank, 1:.N), by = group)
  
  ── 6. Error: test textstat_frequency without groups (@test-textstat_frequency.R#
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: expect_equivalent(textstat_frequency(dfm(corp1), groups = grp1), textstat_frequency(dfm(corp1), 
         groups = "grp2")) at testthat/test-textstat_frequency.R:31
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: textstat_frequency(dfm(corp1), groups = grp1)
  5: textstat_frequency.dfm(dfm(corp1), groups = grp1)
  6: temp[, `:=`(rank, 1:.N), by = group]
  7: `[.data.table`(temp, , `:=`(rank, 1:.N), by = group)
  
  ── 7. Error: test textstat_frequency works with weights (@test-textstat_frequenc
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: expect_equivalent(textstat_frequency(dfm1weighted), data.frame(feature = c("a", "d", 
         "b", "c"), frequency = c(1.58, 0.916, 0.333, 0.1666), rank = 1:4, docfreq = c(3, 
         2, 1, 1), group = rep("all", 4), stringsAsFactors = FALSE), tolerance = 0.01) at testthat/test-textstat_frequency.R:66
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: textstat_frequency(dfm1weighted)
  5: textstat_frequency.dfm(dfm1weighted)
  6: temp[, `:=`(rank, 1:.N), by = group]
  7: `[.data.table`(temp, , `:=`(rank, 1:.N), by = group)
  
  ── 8. Error: readability works with sentence length filtering (@test-textstat_re
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: textstat_readability(txt) at testthat/test-textstat_readability.R:22
  2: textstat_readability.character(txt)
  3: textstat_readability(corpus(x), measure, remove_hyphens, min_sentence_length, max_sentence_length, 
         ...)
  4: textstat_readability.corpus(corpus(x), measure, remove_hyphens, min_sentence_length, 
         max_sentence_length, ...)
  5: temp[, `:=`(Scrabble, nscrabble(x, mean))]
  6: `[.data.table`(temp, , `:=`(Scrabble, nscrabble(x, mean)))
  7: eval(jsub, SDenv, parent.frame())
  8: eval(jsub, SDenv, parent.frame())
  9: nscrabble(x, mean)
  10: nscrabble.character(x, mean)
  11: textDT[order(docIndex), FUN(values, na.rm = TRUE), by = docIndex]
  12: `[.data.table`(textDT, order(docIndex), FUN(values, na.rm = TRUE), by = docIndex)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 2059 SKIPPED: 25 FAILED: 8
  1. Error: bootstrap_dfm works with character and corpus objects (@test-bootstrap.R#11) 
  2. Error: bootstrap_dfm works as planned with dfm (@test-bootstrap.R#40) 
  3. Error: test corpus_sample to see if with grouping, documents can be oversampled (@test-corpus_sample.R#22) 
  4. Error: (unknown) (@test-textstat.R#9) 
  5. Error: test textstat_frequency without groups (@test-textstat_frequency.R#5) 
  6. Error: test textstat_frequency without groups (@test-textstat_frequency.R#31) 
  7. Error: test textstat_frequency works with weights (@test-textstat_frequency.R#66) 
  8. Error: readability works with sentence length filtering (@test-textstat_readability.R#22) 
  
  Error: testthat unit tests failed
  Execution halted