Running ‘testthat.R’ [6s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # setting R_TESTS to empty string because of
  > # https://github.com/hadley/testthat/issues/144
  > # revert this when that issue in R is fixed.
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(ldaPrototype)
  > library(data.table)
  > library(dendextend)
  
  ---------------------
  Welcome to dendextend version 1.15.2
  Type citation('dendextend') for how to cite the package.
  
  Type browseVignettes(package = 'dendextend') for the package vignette.
  The github page is: https://github.com/talgalili/dendextend/
  
  Suggestions and bug-reports can be submitted at: https://github.com/talgalili/dendextend/issues
  You may ask questions at stackoverflow, use the r and dendextend tags: 
  	 https://stackoverflow.com/questions/tagged/dendextend
  
  	To suppress this message use:  suppressPackageStartupMessages(library(dendextend))
  ---------------------
  
  
  Attaching package: 'dendextend'
  
  The following object is masked from 'package:data.table':
  
      set
  
  The following object is masked from 'package:stats':
  
      cutree
  
  > 
  > test_check("ldaPrototype")
  Error in data.frame(job.id = as.integer(job)) : 
    'list' object cannot be coerced to type 'integer'
  Error in data.frame(job.id = as.integer(job)) : 
    'list' object cannot be coerced to type 'integer'
  Error in data.frame(job.id = as.integer(job)) : 
    'list' object cannot be coerced to type 'integer'
  Error in data.frame(job.id = as.integer(job)) : 
    'list' object cannot be coerced to type 'integer'
  Error in data.frame(job.id = as.integer(job)) : 
    'list' object cannot be coerced to type 'integer'
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_LDA.R:18:1): (code run outside of `test_that()`) ────────────────
  Error in `getLDA.LDARep(LDARep(docs = reuters_docs, vocab = reuters_vocab, 
      n = 1, seeds = 1895, K = 10, num.iterations = 20, alpha = 0.1, 
      eta = 0.1, compute.log.likelihood = TRUE, burnin = 2))`: Assertion on 'job$job.id' failed: Element 4 is not >= 1.
  Backtrace:
      █
   1. ├─ldaPrototype::getLDA(...) test_LDA.R:18:0
   2. └─ldaPrototype:::getLDA.LDARep(...)
   3.   └─checkmate::assert_integerish(...)
   4.     └─checkmate::makeAssertion(x, res, .var.name, add)
   5.       └─checkmate:::mstop(...)
  ── Error (test_LDABatch.R:27:1): (code run outside of `test_that()`) ───────────
  Error in `data.frame(job.id = as.integer(job))`: 'list' object cannot be coerced to type 'integer'
  Backtrace:
      █
   1. ├─ldaPrototype::getLDA(resbatch) test_LDABatch.R:27:0
   2. └─ldaPrototype:::getLDA.LDABatch(resbatch)
   3.   └─base::data.frame(job.id = as.integer(job))
  ── Error (test_LDARep.R:18:1): (code run outside of `test_that()`) ─────────────
  Error in `as.LDARep.default(lda = list(lda), job = as.data.frame(c(job.id = 1, 
      getParam(lda))))`: Duplicated LDA names or "job.id".
  Backtrace:
      █
   1. ├─ldaPrototype::as.LDARep(...) test_LDARep.R:18:0
   2. └─ldaPrototype:::as.LDARep.default(...)
  ── Error (test_Prototype.R:7:1): (code run outside of `test_that()`) ───────────
  Error in `data.frame(job.id = as.integer(job))`: 'list' object cannot be coerced to type 'integer'
  Backtrace:
      █
   1. ├─ldaPrototype::getLDA(res) test_Prototype.R:7:0
   2. └─ldaPrototype:::getLDA.LDARep(res)
   3.   └─base::data.frame(job.id = as.integer(job))
  ── Error (test_cosineTopics.R:6:1): (code run outside of `test_that()`) ────────
  Error in `mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)`: object is not a "LDARep" object
  Backtrace:
      █
   1. ├─ldaPrototype::mergeTopics(...) test_cosineTopics.R:6:0
   2. └─ldaPrototype:::mergeTopics.LDARep(...)
   3.   ├─ldaPrototype::mergeRepTopics(x = x, vocab = vocab, progress = progress)
   4.   └─ldaPrototype:::mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)
  ── Error (test_dendTopics.R:7:1): (code run outside of `test_that()`) ──────────
  Error in `mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)`: object is not a "LDARep" object
  Backtrace:
      █
   1. ├─ldaPrototype::jaccardTopics(mergeTopics(res)) test_dendTopics.R:7:0
   2. │ └─checkmate::assert_matrix(...)
   3. ├─ldaPrototype::mergeTopics(res)
   4. └─ldaPrototype:::mergeTopics.LDARep(res)
   5.   ├─ldaPrototype::mergeRepTopics(x = x, vocab = vocab, progress = progress)
   6.   └─ldaPrototype:::mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)
  ── Error (test_jaccardTopics.R:6:1): (code run outside of `test_that()`) ───────
  Error in `mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)`: object is not a "LDARep" object
  Backtrace:
      █
   1. ├─ldaPrototype::mergeTopics(...) test_jaccardTopics.R:6:0
   2. └─ldaPrototype:::mergeTopics.LDARep(...)
   3.   ├─ldaPrototype::mergeRepTopics(x = x, vocab = vocab, progress = progress)
   4.   └─ldaPrototype:::mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)
  ── Error (test_jsTopics.R:6:1): (code run outside of `test_that()`) ────────────
  Error in `mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)`: object is not a "LDARep" object
  Backtrace:
      █
   1. ├─ldaPrototype::mergeTopics(...) test_jsTopics.R:6:0
   2. └─ldaPrototype:::mergeTopics.LDARep(...)
   3.   ├─ldaPrototype::mergeRepTopics(x = x, vocab = vocab, progress = progress)
   4.   └─ldaPrototype:::mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)
  ── Error (test_mergeTopics.R:7:1): (code run outside of `test_that()`) ─────────
  Error in `data.frame(job.id = as.integer(job))`: 'list' object cannot be coerced to type 'integer'
  Backtrace:
      █
   1. ├─ldaPrototype::getLDA(res) test_mergeTopics.R:7:0
   2. └─ldaPrototype:::getLDA.LDARep(res)
   3.   └─base::data.frame(job.id = as.integer(job))
  ── Error (test_rboTopics.R:6:1): (code run outside of `test_that()`) ───────────
  Error in `mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)`: object is not a "LDARep" object
  Backtrace:
      █
   1. ├─ldaPrototype::mergeTopics(...) test_rboTopics.R:6:0
   2. └─ldaPrototype:::mergeTopics.LDARep(...)
   3.   ├─ldaPrototype::mergeRepTopics(x = x, vocab = vocab, progress = progress)
   4.   └─ldaPrototype:::mergeRepTopics.LDARep(x = x, vocab = vocab, progress = progress)
  
  [ FAIL 10 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted