Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(textmining)
  Loading required package: stylo
  
  ### stylo version: 0.6.9 ###
  
  If you plan to cite this software (please do!), use the following reference:
      Eder, M., Rybicki, J. and Kestemont, M. (2016). Stylometry with R:
      a package for computational text analysis. R Journal 8(1): 107-121.
      <https://journal.r-project.org/archive/2016/RJ-2016-007/index.html>
  
  To get full BibTeX entry, type: citation("stylo")
  Loading required package: tm
  Loading required package: NLP
  Loading required package: caret
  Loading required package: lattice
  Loading required package: ggplot2
  
  Attaching package: 'ggplot2'
  
  The following object is masked from 'package:NLP':
  
      annotate
  
  
  Attaching package: 'textmining'
  
  The following object is masked from 'package:tm':
  
      getMeta
  
  The following object is masked from 'package:stats':
  
      terms
  
  The following object is masked from 'package:base':
  
      parse
  
  > 
  > test_check("textmining")
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  Error in .jfindClass(as.character(class)) : 
    Java Exception <no description because toString() failed>.jfindClass(as.character(class))new("jobjRef", jobj = <pointer: 0xa5c43a8>, jclass = "java/lang/Throwable")
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  Error in .jfindClass(as.character(class)) : 
    Java Exception <no description because toString() failed>.jfindClass(as.character(class))new("jobjRef", jobj = <pointer: 0xa5c43b0>, jclass = "java/lang/Throwable")
  ── 1. Error: Predict class for topic model tmTopicModel (@testExterior.R#56)  ──
  $ operator is invalid for atomic vectors
  1: predict(model, y) at testthat/testExterior.R:56
  2: predict.tmTopicModel(model, y)
  3: predict(object$model, x, object$stoplist_file, token_regexp, n_iterations, sampling_interval, 
         burn_in, random_seed)
  
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  Error in .jfindClass(as.character(class)) : 
    Java Exception <no description because toString() failed>.jfindClass(as.character(class))new("jobjRef", jobj = <pointer: 0xa5c43a8>, jclass = "java/lang/Throwable")
  ── 2. Error: Topic table function (@testExterior.R#67)  ────────────────────────
  $ operator is invalid for atomic vectors
  1: topic_table(model) at testthat/testExterior.R:67
  
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  Error in .jfindClass(as.character(class)) : 
    Java Exception <no description because toString() failed>.jfindClass(as.character(class))new("jobjRef", jobj = <pointer: 0xa5c43b0>, jclass = "java/lang/Throwable")
  ── 3. Error: Gepi graphics (@testExterior.R#77)  ───────────────────────────────
  $ operator is invalid for atomic vectors
  1: topic_table(model) at testthat/testExterior.R:77
  
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  Error in .jfindClass(as.character(class)) : 
    Java Exception <no description because toString() failed>.jfindClass(as.character(class))new("jobjRef", jobj = <pointer: 0xa5c43a8>, jclass = "java/lang/Throwable")
  ── 4. Error: Terms for tmTopicModal (@testExterior.R#210)  ─────────────────────
  $ operator is invalid for atomic vectors
  1: expect_equal(class(terms(model, 2)), "data.frame") at testthat/testExterior.R:210
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: terms(model, 2)
  5: terms.tmTopicModel(model, 2)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 86 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: Predict class for topic model tmTopicModel (@testExterior.R#56) 
  2. Error: Topic table function (@testExterior.R#67) 
  3. Error: Gepi graphics (@testExterior.R#77) 
  4. Error: Terms for tmTopicModal (@testExterior.R#210) 
  
  Error: testthat unit tests failed
  Execution halted