Running ‘testthat.R’ [22s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidytext)
  > 
  > test_check("tidytext")
  1. Error: Can cast tables into a sparse dfm (@test-sparse-casters.R#79) --------
  invalid class of object to as_cholmod_sparse
  1: expect_equal(as.numeric(d[1, 1]), 1) at testthat/test-sparse-casters.R:79
  2: compare(object, expected, ...)
  3: as.numeric(d[1, 1])
  4: as.numeric(d[1, 1])
  5: as.vector(x)
  6: as.vector(x, mode)
  7: as.vector(x, mode)
  8: as.vector(.Call(Csparse_to_vector, x), mode)
  
  2. Failure: Can tidy dfm from quanteda (@test-sparse-tidiers.R#34) -------------
  `dfm_obj_td` inherits from `data.frame` not `tbl_df`.
  
  
  3. Failure: Can tidy dfm from quanteda (@test-sparse-tidiers.R#35) -------------
  sort(unique(dfm_obj_td$document)) not equal to sort(rownames(dfm_obj)).
  target is NULL, current is character
  
  
  4. Failure: Can tidy dfm from quanteda (@test-sparse-tidiers.R#36) -------------
  sort(unique(dfm_obj_td$term)) not equal to sort(colnames(dfm_obj)).
  target is NULL, current is character
  
  
  stm v1.3.0 (2017-09-08) successfully loaded. See ?stm for help.
  5. Error: can augment an stm output (@test-stm-tidiers.R#57) -------------------
  data argument must either be a dfmSparse (from quanteda) or a table with document and term columns
  1: augment(stm_model, inaug) at testthat/test-stm-tidiers.R:57
  2: augment.STM(stm_model, inaug)
  3: stop("data argument must either be a dfmSparse ", "(from quanteda) or a table with document and term columns")
  
  testthat results ================================================================
  OK: 198 SKIPPED: 0 FAILED: 5
  1. Error: Can cast tables into a sparse dfm (@test-sparse-casters.R#79) 
  2. Failure: Can tidy dfm from quanteda (@test-sparse-tidiers.R#34) 
  3. Failure: Can tidy dfm from quanteda (@test-sparse-tidiers.R#35) 
  4. Failure: Can tidy dfm from quanteda (@test-sparse-tidiers.R#36) 
  5. Error: can augment an stm output (@test-stm-tidiers.R#57) 
  
  Error: testthat unit tests failed
  Execution halted