Running ‘testthat.R’ [6s/10s]
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 32 threads used.
  See https://quanteda.io for tutorials and examples.
  
  Attaching package: 'quanteda'
  
  The following object is masked from 'package:utils':
  
      View
  
  > 
  > ### the following two functions are in the GitHub quanteda but not the 
  > ### CRAN version, so they are defined here for the test purposes as well
  > ### will be removed once quanteda is refreshed on CRAN
  > ### -- KB 2016-11-19
  > texts.readtext <- function(x, groups = NULL, ...) {
  +     if (!is.null(groups))
  +         stop("groups argument not supported for texts() on a readtext object")
  +     as.character(x)
  +     # result <- x[["text"]]
  +     # names(result) <- row.names(x)
  +     # result
  + }
  > docvars.readtext <- function(x, field = NULL) {
  +     if (!is.null(field))
  +         warning("field argument not used for docvars on a readtext object", noBreaks. = TRUE)
  +     as.data.frame(x[, -which(names(x) %in% c("doc_id", "text")), drop = FALSE])
  + }
  > 
  > docnames.readtext <- function(x) {
  +     x[["doc_id"]]
  + }
  > 
  > ndoc.readtext <- function(x) {
  +     nrow(x)
  + }
  > 
  > 
  > test_check("readtext")
  Loading required package: readtext
  readtext object consisting of 1 document and 0 docvars.
  # data.frame [1 × 2]
    doc_id               text               
    <chr>                <chr>              
  1 file2f7c62890ff0.txt "\"This is UT\"..."
  ── 1. Failure: test readtext() with docvarsfrom=filenames (@test-readtext.R#296)
  `x` threw an error with unexpected message.
  Expected match: "There is no field called"
  Actual message: "the condition has length > 1"
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 130 SKIPPED: 8 FAILED: 1
  1. Failure: test readtext() with docvarsfrom=filenames (@test-readtext.R#296) 
  
  Error: testthat unit tests failed
  Execution halted