Running 'testthat.R' [16s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("qdap")
  Loading required package: qdapDictionaries
  Loading required package: qdapRegex
  Loading required package: qdapTools
  Loading required package: RColorBrewer
  
  Attaching package: 'qdap'
  
  The following objects are masked from 'package:base':
  
      Filter, proportions
  
  > 
  > 
  > test_check("qdap")
  -- ERROR (test-as.tdm.R:8:5): as.tdm, as.dtm, as.DocumentTermMatrix, and as.Term
  Error: length(class) == 1L is not TRUE
  Backtrace:
       x
    1. +-testthat::expect_true(...) test-as.tdm.R:8:4
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-base::inherits(as.tdm(DATA$state, DATA$person), "TermDocumentMatrix")
    5. +-qdap::as.tdm(DATA$state, DATA$person)
    6. \-qdap:::as.tdm.character(DATA$state, DATA$person)
    7.   \-qdap:::tm_tdm_interface2(...)
    8.     \-tm::VCorpus(tm::DataframeSource(LST_DF))
    9.       \-utils::getS3method("pGetElem", class(x), TRUE)
   10.         \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-as.tdm.R:25:5): apply_as_tm applies tm functions and then optiona
  Error: length(class) == 1L is not TRUE
  Backtrace:
       x
    1. +-base::with(DATA, wfm(state, list(sex, adult))) test-as.tdm.R:25:4
    2. \-base::with.default(DATA, wfm(state, list(sex, adult)))
    3.   \-base::eval(substitute(expr), data, enclos = parent.frame())
    4.     \-base::eval(substitute(expr), data, enclos = parent.frame())
    5.       +-qdap::wfm(state, list(sex, adult))
    6.       \-qdap:::wfm.character(state, list(sex, adult))
    7.         \-qdap:::tm_tdm_interface(...)
    8.           \-tm::VCorpus(tm::DataframeSource(LST_DF))
    9.             \-utils::getS3method("pGetElem", class(x), TRUE)
   10.               \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-as.tdm.R:62:5): as.Corpus and as.data.frame methods work to conve
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-tm::Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML)) test-as.tdm.R:62:4
   2.   \-tm::VCorpus(x, readerControl)
   3.     \-utils::getS3method("pGetElem", class(x), TRUE)
   4.       \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-as.tdm.R:81:5): apply_as_df allows users to apply data.frame base
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-tm::Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML)) test-as.tdm.R:81:4
   2.   \-tm::VCorpus(x, readerControl)
   3.     \-utils::getS3method("pGetElem", class(x), TRUE)
   4.       \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-phrase_net.R:19:5): phrase_net gives a `phrase_net` and `igraph` 
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-qdap::phrase_net(sents, r = 0.5) test-phrase_net.R:19:4
   2.   \-qdap::word_cor(...)
   3.     +-base::t(...)
   4.     +-qdap::wfm(text.var = text.var, grouping.var = grouping.var, ...)
   5.     \-qdap:::wfm.character(...)
   6.       \-qdap:::tm_tdm_interface(...)
   7.         \-tm::VCorpus(tm::DataframeSource(LST_DF))
   8.           \-utils::getS3method("pGetElem", class(x), TRUE)
   9.             \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-wfm.R:6:5): wfm out puts a matrix with appropriate attributes ---
  Error: length(class) == 1L is not TRUE
  Backtrace:
       x
    1. +-base::with(DATA, wfm(state, list(sex, adult))) test-wfm.R:6:4
    2. \-base::with.default(DATA, wfm(state, list(sex, adult)))
    3.   \-base::eval(substitute(expr), data, enclos = parent.frame())
    4.     \-base::eval(substitute(expr), data, enclos = parent.frame())
    5.       +-qdap::wfm(state, list(sex, adult))
    6.       \-qdap:::wfm.character(state, list(sex, adult))
    7.         \-qdap:::tm_tdm_interface(...)
    8.           \-tm::VCorpus(tm::DataframeSource(LST_DF))
    9.             \-utils::getS3method("pGetElem", class(x), TRUE)
   10.               \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-wfm.R:64:5): wfm_expanded expands -------------------------------
  Error: length(class) == 1L is not TRUE
  Backtrace:
       x
    1. +-testthat::expect_true(...) test-wfm.R:64:4
    2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-base::rownames(wfm_expanded(wfm(DATA$state, DATA$person)))
    5. +-qdap::wfm_expanded(wfm(DATA$state, DATA$person))
    6. | \-methods::is(text.var, "true.matrix")
    7. +-qdap::wfm(DATA$state, DATA$person)
    8. \-qdap:::wfm.character(DATA$state, DATA$person)
    9.   \-qdap:::tm_tdm_interface(...)
   10.     \-tm::VCorpus(tm::DataframeSource(LST_DF))
   11.       \-utils::getS3method("pGetElem", class(x), TRUE)
   12.         \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-wfm.R:74:5): wf_combine combines --------------------------------
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. +-qdap::wfm(DATA$state, DATA$person) test-wfm.R:74:4
   2. \-qdap:::wfm.character(DATA$state, DATA$person)
   3.   \-qdap:::tm_tdm_interface(...)
   4.     \-tm::VCorpus(tm::DataframeSource(LST_DF))
   5.       \-utils::getS3method("pGetElem", class(x), TRUE)
   6.         \-base::stopifnot(is.character(class), length(class) == 1L)
  
  == testthat results  ===========================================================
  ERROR (test-as.tdm.R:8:5): as.tdm, as.dtm, as.DocumentTermMatrix, and as.TermDocumentMatrix 
      convert wfm, character and existing TermDocumentMatrix/DocumentTermMatrix
  ERROR (test-as.tdm.R:25:5): apply_as_tm applies tm functions and then optionally converts back
  ERROR (test-as.tdm.R:62:5): as.Corpus and as.data.frame methods work to convert between qadp/tm
  ERROR (test-as.tdm.R:81:5): apply_as_df allows users to apply data.frame based functions to a Corpus
  ERROR (test-phrase_net.R:19:5): phrase_net gives a `phrase_net` and `igraph` object
  ERROR (test-wfm.R:6:5): wfm out puts a matrix with appropriate attributes
  ERROR (test-wfm.R:64:5): wfm_expanded expands
  ERROR (test-wfm.R:74:5): wf_combine combines
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 188 ]
  Error: Test failures
  Execution halted