Running 'testthat.R' [25s/27s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(openVA)
  --------------------- Attaching packages for openVA 1.0.12 ---------------------
  v InSilicoVA 1.3.1
  v InterVA4   1.7.6
  v InterVA5   1.1.0
  v Tariff     1.0.5
  -- Optional packages (require manual installation if not attached) -------------
  x nbc4va     
  If you need to use these methods, you may need to load or install the packages: nbc4va.
  You can run in your R terminal:
  library('nbc4va')
  
  > 
  > test_check("openVA")
  
  Start re-sampling for significant Tariff cells
  Calculating ranks
  
  Start re-sampling for significant Tariff cells
  Calculating ranks
  == Failed tests ================================================================
  -- Error (tests.stackplot.R:23:3): Insilico - every symptom is the same broad cause --
  Error: data length differs from size of matrix: [4368 != 168 x 13]
  Backtrace:
      x
   1. \-openVA::codeVA(...) tests.stackplot.R:23:2
   2.   +-base::do.call("insilico.train", pairlist(args)[[1]][-1])
   3.   \-InSilicoVA::insilico.train(...)
   4.     \-InSilicoVA::extract.prob(...)
   5.       \-InSilicoVA:::toLevel(cond.prob, rev(levels), freqs)
   6.         \-base::matrix(new, dim(cond.prob)[1], dim(cond.prob)[2])
  -- Error (tests.stackplot.R:42:3): InterVA4 - every symptom is the same broad cause --
  Error: data length differs from size of matrix: [4368 != 168 x 13]
  Backtrace:
      x
   1. \-openVA::codeVA(...) tests.stackplot.R:42:2
   2.   \-openVA::interVA.train(...)
   3.     \-InSilicoVA::extract.prob(...)
   4.       \-InSilicoVA:::toLevel(cond.prob, rev(levels), freqs)
   5.         \-base::matrix(new, dim(cond.prob)[1], dim(cond.prob)[2])
  -- Error (tests.stackplot.R:61:3): InterVA5 - every symptom is the same broad cause --
  Error: data length differs from size of matrix: [4368 != 168 x 13]
  Backtrace:
      x
   1. \-openVA::codeVA(...) tests.stackplot.R:61:2
   2.   \-openVA::interVA.train(...)
   3.     \-InSilicoVA::extract.prob(...)
   4.       \-InSilicoVA:::toLevel(cond.prob, rev(levels), freqs)
   5.         \-base::matrix(new, dim(cond.prob)[1], dim(cond.prob)[2])
  -- Error (tests.stackplot.R:116:3): InSilico - list of three identical runs ----
  Error: data length differs from size of matrix: [4368 != 168 x 13]
  Backtrace:
      x
   1. \-openVA::codeVA(...) tests.stackplot.R:116:2
   2.   +-base::do.call("insilico.train", pairlist(args)[[1]][-1])
   3.   \-InSilicoVA::insilico.train(...)
   4.     \-InSilicoVA::extract.prob(...)
   5.       \-InSilicoVA:::toLevel(cond.prob, rev(levels), freqs)
   6.         \-base::matrix(new, dim(cond.prob)[1], dim(cond.prob)[2])
  -- Error (tests.stackplot.R:133:3): InterVA4 - list of three identical runs ----
  Error: data length differs from size of matrix: [4368 != 168 x 13]
  Backtrace:
      x
   1. \-openVA::codeVA(...) tests.stackplot.R:133:2
   2.   \-openVA::interVA.train(...)
   3.     \-InSilicoVA::extract.prob(...)
   4.       \-InSilicoVA:::toLevel(cond.prob, rev(levels), freqs)
   5.         \-base::matrix(new, dim(cond.prob)[1], dim(cond.prob)[2])
  -- Error (tests.stackplot.R:151:3): InterVA5 - list of three identical runs ----
  Error: data length differs from size of matrix: [4368 != 168 x 13]
  Backtrace:
      x
   1. \-openVA::codeVA(...) tests.stackplot.R:151:2
   2.   \-openVA::interVA.train(...)
   3.     \-InSilicoVA::extract.prob(...)
   4.       \-InSilicoVA:::toLevel(cond.prob, rev(levels), freqs)
   5.         \-base::matrix(new, dim(cond.prob)[1], dim(cond.prob)[2])
  -- Error (tests.stackplot.R:207:3): InterVA4 - category missing from grouping is handled --
  Error: data length differs from size of matrix: [4368 != 168 x 13]
  Backtrace:
      x
   1. \-openVA::codeVA(...) tests.stackplot.R:207:2
   2.   \-openVA::interVA.train(...)
   3.     \-InSilicoVA::extract.prob(...)
   4.       \-InSilicoVA:::toLevel(cond.prob, rev(levels), freqs)
   5.         \-base::matrix(new, dim(cond.prob)[1], dim(cond.prob)[2])
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted