Running ‘testthat.R’ [107s/121s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(latrend)
  > 
  > test_check('latrend')
  [ FAIL 2 | WARN 0 | SKIP 14 | PASS 1851 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (9)
  • akmedoids cannot be loaded (1)
  • clusterCrit cannot be loaded (2)
  • empty test (1)
  • skipping MixTVEM tests because the TVEMMixNormal() function is not loaded (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-metrics.R:12:5'): two clusters ─────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'clusterCrit'
  Backtrace:
       ▆
    1. ├─latrend::metric(testModel2, name = name) at test-metrics.R:12:4
    2. ├─latrend::metric(testModel2, name = name)
    3. │ └─base::Map(...)
    4. │   └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5. │     └─latrend (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
    6. │       └─latrend (local) fun(object)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-metrics.R:20:5'): single cluster ───────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'clusterCrit'
  Backtrace:
       ▆
    1. ├─latrend::metric(testModel1, name = name) at test-metrics.R:20:4
    2. ├─latrend::metric(testModel1, name = name)
    3. │ └─base::Map(...)
    4. │   └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
    5. │     └─latrend (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
    6. │       └─latrend (local) fun(object)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 2 | WARN 0 | SKIP 14 | PASS 1851 ]
  Error: Test failures
  Execution halted