Running ‘testthat.R’ [15s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidytext)
  > 
  > test_check("tidytext")
  1. Error: Can tidy corpus from quanteda package (@test-corpus-tidiers.R#23) ----
  object 'inaugCorpus' not found
  1: quanteda::texts(inaugCorpus) at testthat/test-corpus-tidiers.R:23
  
  2. Error: can tidy a quanteda dictionary (@test-dictionary-tidiers.R#9) --------
  Dictionary elements must be named: 
  1: tidy(d) at testthat/test-dictionary-tidiers.R:9
  2: tidy.dictionary(d)
  3: purrr::map_df(x, function(e) data_frame(word = e, stringsAsFactors = FALSE), .id = "category") %>% 
         mutate(category = as.character(category))
  4: eval(lhs, parent, parent)
  5: eval(lhs, parent, parent)
  6: purrr::map_df(x, function(e) data_frame(word = e, stringsAsFactors = FALSE), .id = "category")
  7: map(.x, .f, ...)
  8: .f(.x[[i]], ...)
  9: data_frame(word = e, stringsAsFactors = FALSE)
  10: as_tibble(lst(...))
  11: lst(...)
  12: eval_tidy(xs[[i]], output)
  13: overscope_eval_next(overscope, expr)
  14: .x[[i]]
  15: .x[[i]]
  16: .local(x, i, ...)
  17: new("dictionary", unclass(x)[[i]][is_category], format = x@format, file = x@file, 
         concatenator = x@concatenator)
  18: initialize(value, ...)
  19: initialize(value, ...)
  20: validObject(.Object)
  21: anyStrings(validityMethod(object))
  22: validityMethod(object)
  23: validate_dictionary(object)
  24: stop("Dictionary elements must be named: ", paste(unlist(dict, recursive = TRUE), 
         collapse = " "))
  
  3. Error: Can tidy dfm from quanteda (@test-sparse-tidiers.R#28) ---------------
  'inaugCorpus' is not an exported object from 'namespace:quanteda'
  1: capture.output(dfm_obj <- quanteda::dfm(quanteda::inaugCorpus)) at testthat/test-sparse-tidiers.R:28
  2: evalVis(expr)
  3: withVisible(eval(expr, pf))
  4: eval(expr, pf)
  5: eval(expr, pf)
  6: quanteda::dfm(quanteda::inaugCorpus)
  7: quanteda::inaugCorpus
  8: getExportedValue(pkg, name)
  9: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  testthat results ================================================================
  OK: 126 SKIPPED: 0 FAILED: 3
  1. Error: Can tidy corpus from quanteda package (@test-corpus-tidiers.R#23) 
  2. Error: can tidy a quanteda dictionary (@test-dictionary-tidiers.R#9) 
  3. Error: Can tidy dfm from quanteda (@test-sparse-tidiers.R#28) 
  
  Error: testthat unit tests failed
  Execution halted