Running 'testthat.R' [11s]
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
  
  > 
  > ### 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
  -- 1. Failure: test encoding function on simple text files (@test-encoding.R#7) 
  `enc` not equal to list(probably = "UTF-8", all = "UTF-8").
  Component "probably": 1 string mismatch
  Component "all": 1 string mismatch
  
  -- 2. Failure: test encoding function on simple text files (@test-encoding.R#12)
  `enc` not equal to list(probably = "UTF-8", all = "UTF-8").
  Component "probably": 1 string mismatch
  Component "all": 1 string mismatch
  
  readtext object consisting of 1 document and 0 docvars.
  # data.frame [1 x 2]
    doc_id                text               
    <chr>                 <chr>              
  1 file30f805d777fbc.txt "\"This is UT\"..."
  -- 3. Failure: test encoding function on simple text files (@test-encoding.R#17)
  `encoding(rt, verbose = TRUE)` produced unexpected messages.
  Expected match: Probable encoding: UTF-8
  Actual values:
  * Probable encoding: ISO-8859-2
  * 
  
  
  == testthat results  ===========================================================
  OK: 127 SKIPPED: 11 FAILED: 3
  1. Failure: test encoding function on simple text files (@test-encoding.R#7) 
  2. Failure: test encoding function on simple text files (@test-encoding.R#12) 
  3. Failure: test encoding function on simple text files (@test-encoding.R#17) 
  
  Error: testthat unit tests failed
  Execution halted