Running ‘test-all.R’ [51s/64s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > #library("lava")
  > suppressPackageStartupMessages(library("testthat"))
  > test_check("lava")
  Loading required package: lava
  
  Attaching package: 'lava'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  ── 1. Error: Probit constraints (@test-constrain.R#62)  ────────────────────────
  non-character argument
  Backtrace:
   1. base::strsplit(sessionInfo()$otherPkgs$mets$Version, ".", fixed = TRUE)
  
  ── 2. Error: estimate.default (@test-estimate_default.R#7)  ────────────────────
  there is no package called 'mets'
  Backtrace:
   1. mets::fast.reshape
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: Association measures (@test-inference.R#82)  ──────────────────────
  'mets' package required
  Backtrace:
   1. lava:::prob.normal(...)
  
  ── 4. Error: Prediction with missing data, random intercept (@test-inference.R#2
  there is no package called 'mets'
  Backtrace:
   1. mets::fast.reshape
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 5. Error: Random slope model (@test-inference.R#310)  ───────────────────────
  there is no package called 'mets'
  Backtrace:
   1. mets::fast.reshape
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 6. Error: multinomial (@test-inference.R#431)  ──────────────────────────────
  'mets' package required
  Backtrace:
   1. base::system.time(rho <- pcor(d[, 5], d[, 6]))
   2. lava::pcor(d[, 5], d[, 6])
  
  ── 7. Error: Weighted (@test-inference.R#490)  ─────────────────────────────────
  'mets' package required
  Backtrace:
    1. lava::estimate(...)
    8. lava:::objective(.par, ...)
   10. lava:::normal_objective.lvm(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 221 | SKIPPED: 4 | WARNINGS: 2 | FAILED: 7 ]
  1. Error: Probit constraints (@test-constrain.R#62) 
  2. Error: estimate.default (@test-estimate_default.R#7) 
  3. Error: Association measures (@test-inference.R#82) 
  4. Error: Prediction with missing data, random intercept (@test-inference.R#280) 
  5. Error: Random slope model (@test-inference.R#310) 
  6. Error: multinomial (@test-inference.R#431) 
  7. Error: Weighted (@test-inference.R#490) 
  
  Error: testthat unit tests failed
  Execution halted