Running ‘testthat.R’ [28s/27s]
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")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======                                                                |   9%
    |                                                                            
    |=============                                                         |  18%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=========================                                             |  36%
    |                                                                            
    |================================                                      |  45%
    |                                                                            
    |======================================                                |  55%
    |                                                                            
    |=============================================                         |  64%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |=========================================================             |  82%
    |                                                                            
    |================================================================      |  91%
    |                                                                            
    |======================================================================| 100%
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======                                                                |   9%
    |                                                                            
    |=============                                                         |  18%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=========================                                             |  36%
    |                                                                            
    |================================                                      |  45%
    |                                                                            
    |======================================                                |  55%
    |                                                                            
    |=============================================                         |  64%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |=========================================================             |  82%
    |                                                                            
    |================================================================      |  91%
    |                                                                            
    |======================================================================| 100%
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-adjacency_matrix.R:6:5): adjacency_matrix gives desired output ──
  Error in ``[.data.frame`(y, , i)`: undefined columns selected
  Backtrace:
       █
    1. ├─base::with(DATA, termco(state, list(sex, adult), words)) test-adjacency_matrix.R:6:4
    2. └─base::with.default(DATA, termco(state, list(sex, adult), words))
    3.   └─base::eval(substitute(expr), data, enclos = parent.frame())
    4.     └─base::eval(substitute(expr), data, enclos = parent.frame())
    5.       └─qdap::termco(state, list(sex, adult), words)
    6.         └─qdap::termco_d(...)
    7.           └─qdap:::termco.h(...)
    8.             └─qdap::replacer(w[, -c(1:2), drop = FALSE], replace = 0, with = zero.replace)
    9.               ├─qdap:::numTest(y[, i])
   10.               ├─y[, i]
   11.               └─base::`[.data.frame`(y, , i)
  ── Error (test-as.tdm.R:94:5): apply_as_df allows users to apply data.frame based functions to a Corpus ──
  Error in ``[.data.frame`(y, , i)`: undefined columns selected
  Backtrace:
       █
    1. └─qdap::apply_as_df(reuters, termco, match.list = matches) test-as.tdm.R:94:4
    2.   ├─base::with(...)
    3.   └─base::with.default(...)
    4.     └─base::eval(substitute(expr), data, enclos = parent.frame())
    5.       └─base::eval(substitute(expr), data, enclos = parent.frame())
    6.         └─qdap:::qdapfun(text.var = text, grouping.var = doc_id, ...)
    7.           └─qdap::termco_d(...)
    8.             └─qdap:::termco.h(...)
    9.               └─qdap::replacer(w[, -c(1:2), drop = FALSE], replace = 0, with = zero.replace)
   10.                 ├─qdap:::numTest(y[, i])
   11.                 ├─y[, i]
   12.                 └─base::`[.data.frame`(y, , i)
  ── Failure (test-colcomb2class.R:17:5): colcomb2class gives the correct output including number of columns ──
  all(unlist(sapply(out, ncol)) == rep(4, 3)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-end_mark.R:15:5): end_mark_by gives the desired output ──────────
  Error in `names(object) <- nm`: 'names' attribute [4] must be the same length as the vector [2]
  Backtrace:
      █
   1. └─qdap::end_mark_by(DATA.SPLIT$state, DATA.SPLIT$person) test-end_mark.R:15:4
   2.   └─stats::setNames(...)
  ── Failure (test-pos.R:93:5): pos gives the desired output ─────────────────────
  posdat[["POSrnp"]] not equal to expected[[1]].
  Names: 1 string mismatch
  Attributes: < Component "row.names": Numeric: lengths (176, 11) differ >
  Length mismatch: comparison on first 2 components
  Component "wrd.cnt": Numeric: lengths (176, 11) differ
  Component 2: Lengths (176, 11) differ (string compare on first 11)
  ── Failure (test-wfm.R:56:5): wfdf out puts a matrix with appropriate attributes ──
  `wfdf1` not equivalent to `wfdf1_c`.
  Component "Words": 14 string mismatches
  Component "f.0": Mean relative difference: 1.2
  Component "f.1": Mean relative difference: 1
  Component "m.0": Mean relative difference: 3.666667
  Component "m.1": Mean relative difference: 1.5
  ── Failure (test-wfm.R:57:5): wfdf out puts a matrix with appropriate attributes ──
  `wfdf2` not equivalent to `wfdf2_c`.
  Component "Words": 15 string mismatches
  Component "greg": Mean relative difference: 0.9285714
  Component "researcher": Mean absolute difference: 1
  Component "sally": Mean absolute difference: 1
  Component "sam": Mean relative difference: 2.5
  Component "teacher": Mean absolute difference: 1
  ── Error (test-wfm.R:93:5): wf_combine combines ────────────────────────────────
  Error in `data.frame(word.group = NAMES, m, check.names = FALSE)`: arguments imply differing number of rows: 3, 41
  Backtrace:
      █
   1. └─qdap::wfm_combine(x, WL2) test-wfm.R:93:4
   2.   └─base::data.frame(word.group = NAMES, m, check.names = FALSE)
  
  [ FAIL 8 | WARN 2 | SKIP 0 | PASS 190 ]
  Error: Test failures
  Execution halted