Running ‘testthat.R’ [29s/26s]
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
  Registered S3 methods overwritten by 'qdap':
    method               from
    t.DocumentTermMatrix tm  
    t.TermDocumentMatrix tm  
  
  Attaching package: 'qdap'
  
  The following object is masked from 'package:testthat':
  
      %>%
  
  The following object is masked from 'package:base':
  
      Filter
  
  > 
  > 
  > test_check("qdap")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======                                                                |   9%
    |                                                                            
    |=============                                                         |  18%── 1. Error: formality gives the desired output (@test-formality.R#6)  ─────────
  Java Exception <no description because toString() failed>.jcall(ref, "[Lopennlp/tools/util/Span;", "tokenizePos", x)new("jobjRef", jobj = <pointer: 0x6cc4e80>, jclass = "java/lang/Throwable")
  1: with(DATA, formality(state, list(sex, adult))) at testthat/test-formality.R:6
  2: with.default(DATA, formality(state, list(sex, adult)))
  3: eval(substitute(expr), data, enclos = parent.frame())
  4: eval(substitute(expr), data, enclos = parent.frame())
  5: formality(state, list(sex, adult))
  6: pos_by(text.var = text.var, grouping.var = grouping.var, digits = digits, ...)
  7: pos(text.var, digits = digits, percent = percent, ...)
  8: lapply(seq_len(ntv), function(i) {
         x <- tagPOS(text.var[i], pta)
         utils::setTxtProgressBar(pb, i)
         x
     })
  9: FUN(X[[i]], ...)
  10: tagPOS(text.var[i], pta)
  11: NLP::annotate(s, word_token_annotator, a2)
  12: merge(a, e(s, a))
  13: merge.Annotation(a, e(s, a))
  14: paste(y$id, y$type, y$start, y$end, sep = "\r")
  15: e(s, a)
  16: lapply(substring(s, a$start[i], a$end[i]), f)
  17: FUN(X[[i]], ...)
  18: .jcall(ref, "[Lopennlp/tools/util/Span;", "tokenizePos", x)
  19: .jcheck()
  20: stop(list(message = "Java Exception <no description because toString() failed>", 
         call = .jcall(ref, "[Lopennlp/tools/util/Span;", "tokenizePos", x), jobj = new("jobjRef", 
             jobj = <pointer: 0x6cc4e80>, jclass = "java/lang/Throwable")))
  
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |======                                                                |   9%
    |                                                                            
    |=============                                                         |  18%
    |                                                                            
    |===================                                                   |  27%
    |                                                                            
    |=========================                                             |  36%
    |                                                                            
    |================================                                      |  45%
    |                                                                            
    |======================================                                |  55%
    |                                                                            
    |=============================================                         |  64%
    |                                                                            
    |===================================================                   |  73%
    |                                                                            
    |=========================================================             |  82%
    |                                                                            
    |================================================================      |  91%
    |                                                                            
    |======================================================================| 100%
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 214 SKIPPED: 0 WARNINGS: 0 FAILED: 1
  1. Error: formality gives the desired output (@test-formality.R#6) 
  
  Error: testthat unit tests failed
  Execution halted