Running ‘testthat.R’ [32s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(serp)
  > 
  > test_check("serp")
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 35 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-model-formula.R:14:3'): formula is specified in serp ───────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(...) at test-model-formula.R:14:3
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-model-weights.R:22:13'): weight argument introduces no error ───
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(...) at test-model-weights.R:22:13
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-model-weights.R:79:13'): trace and errorMeterics work properly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(...) at test-model-weights.R:79:13
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-penalized-model.R:42:13'): estreem shrinkage with serp results to the
             proportional odds model (POM), while zero
             shrinkage returns the non-proportional odds
             model (NPOM) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(summary(sp3)$penalty$lambda) at test-penalized-model.R:42:13
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-penalized-model.R:95:13'): lambda is a single numeric and non-negative value and
             that lambdaGrid contains the right input values ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(...) at test-penalized-model.R:95:13
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-penalized-model.R:145:13'): predict function works properly ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(pred1[1L, ]) at test-penalized-model.R:145:13
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-penalized-model.R:260:13'): error messages and warnings report properly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(...) at test-penalized-model.R:260:13
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-unpenalized-model.R:22:13'): cumulative model via serp matches with vglm ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'vctrs'
  Backtrace:
      ▆
   1. ├─testthat::expect_vector(predict(sp, type = "class")) at test-unpenalized-model.R:22:13
   2. │ └─base::tryCatch(...)
   3. │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base (local) withOneRestart(expr, restarts[[1L]])
   9.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 35 ]
  Error: Test failures
  Execution halted