Running ‘testthat.R’ [90s/191s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(nlmixr2lib)
  > 
  > test_check("nlmixr2lib")
  Saving _problems/test-addBaseline-15.R
  Saving _problems/test-addBaseline-34.R
  Saving _problems/test-addBaseline-51.R
  Saving _problems/test-addBaseline-68.R
  Saving _problems/test-addDepot-4.R
  Saving _problems/test-addDepot-37.R
  Saving _problems/test-addDirectLin-15.R
  Saving _problems/test-addEffectCmt-24.R
  Saving _problems/test-addIndirect-14.R
  Saving _problems/test-addIndirect-17.R
  Saving _problems/test-addIndirect-20.R
  Saving _problems/test-addIndirect-23.R
  Saving _problems/test-addIndirect-26.R
  Saving _problems/test-addIndirect-29.R
  Saving _problems/test-addIndirect-14.R
  Saving _problems/test-addIndirect-17.R
  Saving _problems/test-addIndirect-20.R
  Saving _problems/test-addIndirect-23.R
  Saving _problems/test-addIndirect-26.R
  Saving _problems/test-addIndirect-29.R
  Saving _problems/test-addIndirect-14.R
  Saving _problems/test-addIndirect-17.R
  Saving _problems/test-addIndirect-20.R
  Saving _problems/test-addIndirect-23.R
  Saving _problems/test-addIndirect-26.R
  Saving _problems/test-addIndirect-29.R
  Saving _problems/test-addIndirect-14.R
  Saving _problems/test-addIndirect-17.R
  Saving _problems/test-addIndirect-20.R
  Saving _problems/test-addIndirect-23.R
  Saving _problems/test-addIndirect-26.R
  Saving _problems/test-addIndirect-29.R
  Saving _problems/test-addIndirect-14.R
  Saving _problems/test-addIndirect-17.R
  Saving _problems/test-addIndirect-20.R
  Saving _problems/test-addIndirect-23.R
  Saving _problems/test-addIndirect-26.R
  Saving _problems/test-addIndirect-29.R
  Saving _problems/test-addIndirect-14.R
  Saving _problems/test-addIndirect-17.R
  Saving _problems/test-addIndirect-20.R
  Saving _problems/test-addIndirect-23.R
  Saving _problems/test-addIndirect-26.R
  Saving _problems/test-addIndirect-29.R
  Saving _problems/test-addTransit-2.R
  Saving _problems/test-addTransit-18.R
  Saving _problems/test-addTransit-28.R
  Saving _problems/test-addTransit-40.R
  Saving _problems/test-addWeibullAbs-46.R
  i add covariate `k`
  ! remove population parameter `uR0`
  i add covariate `R`
  Saving _problems/test-convertLogLin-5.R
  Saving _problems/test-convertQuad-5.R
  Saving _problems/test-removeDepot-7.R
  Saving _problems/test-removeTransit-5.R
  Saving _problems/test-removeTransit-13.R
  Saving _problems/test-removeTransit-21.R
  Saving _problems/test-removeTransit-28.R
  Saving _problems/test-transPk-4.R
  Saving _problems/test-transPk-27.R
  Saving _problems/test-transPk-46.R
  Saving _problems/test-transPk-61.R
  Saving _problems/test-transPk-82.R
  [ FAIL 61 | WARN 0 | SKIP 22 | PASS 156 ]
  
  ══ Skipped tests (22) ══════════════════════════════════════════════════════════
  • {qs} is not installed. (22): 'test-addEta.R:2:3', 'test-addEta.R:101:3',
    'test-addEta.R:120:3', 'test-addEta.R:151:3', 'test-addEta.R:170:3',
    'test-addEta.R:178:3', 'test-addProp.R:17:1', 'test-addResErr.R:3:3',
    'test-addResErr.R:56:3', 'test-addResErr.R:65:3', 'test-addResErr.R:84:3',
    'test-addResErr.R:103:3', 'test-addResErr.R:128:3',
    'test-addWeibullAbs.R:4:3', 'test-addWeibullAbs.R:28:3',
    'test-readModelDb.R:2:3', 'test-removeDepot.R:11:3',
    'test-removeDepot.R:22:3', 'test-removeDepot.R:31:3',
    'test-removeDepot.R:38:3', 'test-searchReplace.R:2:3',
    'test-updateOncologyXenograftSimeoni2004.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-addBaseline.R:15:3'): Test addBaselineConst function ───────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addDirectLin(readModelDb("PK_2cmt_no_depot")) at test-addBaseline.R:15:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addBaseline.R:34:3'): Test addBaselineExp function ─────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addDirectLin(readModelDb("PK_3cmt")) at test-addBaseline.R:34:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addBaseline.R:51:3'): Test addBaseline1exp function ────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addDirectLin(readModelDb("PK_2cmt")) at test-addBaseline.R:51:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addBaseline.R:68:3'): Test addBaselineLin function ─────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addDirectLin(readModelDb("PK_1cmt")) at test-addBaseline.R:68:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addDepot.R:2:3'): addDepot adds depot ──────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─base::suppressMessages(model <- removeDepot(readModelDb("PK_1cmt_des"))) at test-addDepot.R:2:3
   2. │ └─base::withCallingHandlers(...)
   3. └─nlmixr2lib::removeDepot(readModelDb("PK_1cmt_des"))
   4.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addDepot.R:35:3'): addDepot adds other than default agruments ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─base::suppressMessages(model <- removeDepot(readModelDb("PK_1cmt_des"))) at test-addDepot.R:35:3
   2. │ └─base::withCallingHandlers(...)
   3. └─nlmixr2lib::removeDepot(readModelDb("PK_1cmt_des"))
   4.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addDirectLin.R:14:3'): direct linear function creation ─────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addDirectLin(readModelDb("PK_3cmt_des")) at test-addDirectLin.R:14:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addEffectCmt.R:23:3'): Test addEffectCmtLin ────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addEffectCmtLin(readModelDb("PK_3cmt_des")) at test-addEffectCmt.R:23:3
   2.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:14:7'): addIndirectLin: PK_1cmt_des; stim=in ───
  Expected `addIndirectLin(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:14:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), stim = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:17:7'): addIndirectLin: PK_1cmt_des; inhib=in ──
  Expected `addIndirectLin(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:17:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), inhib = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:20:7'): addIndirect: PK_1cmt_des; stim=in ──────
  Expected `addIndirect(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:20:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:23:7'): addIndirect: PK_1cmt_des; inhib=in ─────
  Expected `addIndirect(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:23:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:26:7'): addIndirect: PK_1cmt_des; stim=in, hill ──
  Expected `addIndirect(readModelDb(m), stim = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:26:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:29:7'): addIndirect: PK_1cmt_des; inhib=in, hill ──
  Expected `addIndirect(readModelDb(m), inhib = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:29:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:14:7'): addIndirectLin: PK_2cmt_des; stim=in ───
  Expected `addIndirectLin(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:14:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), stim = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:17:7'): addIndirectLin: PK_2cmt_des; inhib=in ──
  Expected `addIndirectLin(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:17:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), inhib = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:20:7'): addIndirect: PK_2cmt_des; stim=in ──────
  Expected `addIndirect(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:20:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:23:7'): addIndirect: PK_2cmt_des; inhib=in ─────
  Expected `addIndirect(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:23:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:26:7'): addIndirect: PK_2cmt_des; stim=in, hill ──
  Expected `addIndirect(readModelDb(m), stim = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:26:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:29:7'): addIndirect: PK_2cmt_des; inhib=in, hill ──
  Expected `addIndirect(readModelDb(m), inhib = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:29:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:14:7'): addIndirectLin: PK_3cmt_des; stim=in ───
  Expected `addIndirectLin(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:14:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), stim = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:17:7'): addIndirectLin: PK_3cmt_des; inhib=in ──
  Expected `addIndirectLin(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:17:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), inhib = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:20:7'): addIndirect: PK_3cmt_des; stim=in ──────
  Expected `addIndirect(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:20:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:23:7'): addIndirect: PK_3cmt_des; inhib=in ─────
  Expected `addIndirect(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:23:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:26:7'): addIndirect: PK_3cmt_des; stim=in, hill ──
  Expected `addIndirect(readModelDb(m), stim = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:26:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:29:7'): addIndirect: PK_3cmt_des; inhib=in, hill ──
  Expected `addIndirect(readModelDb(m), inhib = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:29:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:14:7'): addIndirectLin: PK_1cmt_des; stim=out ──
  Expected `addIndirectLin(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:14:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), stim = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:17:7'): addIndirectLin: PK_1cmt_des; inhib=out ──
  Expected `addIndirectLin(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:17:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), inhib = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:20:7'): addIndirect: PK_1cmt_des; stim=out ─────
  Expected `addIndirect(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:20:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:23:7'): addIndirect: PK_1cmt_des; inhib=out ────
  Expected `addIndirect(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:23:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:26:7'): addIndirect: PK_1cmt_des; stim=out, hill ──
  Expected `addIndirect(readModelDb(m), stim = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:26:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:29:7'): addIndirect: PK_1cmt_des; inhib=out, hill ──
  Expected `addIndirect(readModelDb(m), inhib = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:29:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:14:7'): addIndirectLin: PK_2cmt_des; stim=out ──
  Expected `addIndirectLin(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:14:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), stim = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:17:7'): addIndirectLin: PK_2cmt_des; inhib=out ──
  Expected `addIndirectLin(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:17:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), inhib = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:20:7'): addIndirect: PK_2cmt_des; stim=out ─────
  Expected `addIndirect(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:20:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:23:7'): addIndirect: PK_2cmt_des; inhib=out ────
  Expected `addIndirect(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:23:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:26:7'): addIndirect: PK_2cmt_des; stim=out, hill ──
  Expected `addIndirect(readModelDb(m), stim = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:26:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:29:7'): addIndirect: PK_2cmt_des; inhib=out, hill ──
  Expected `addIndirect(readModelDb(m), inhib = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:29:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:14:7'): addIndirectLin: PK_3cmt_des; stim=out ──
  Expected `addIndirectLin(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:14:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), stim = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:17:7'): addIndirectLin: PK_3cmt_des; inhib=out ──
  Expected `addIndirectLin(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:17:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirectLin(readModelDb(m), inhib = v)
   8.   └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:20:7'): addIndirect: PK_3cmt_des; stim=out ─────
  Expected `addIndirect(readModelDb(m), stim = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:20:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:23:7'): addIndirect: PK_3cmt_des; inhib=out ────
  Expected `addIndirect(readModelDb(m), inhib = v)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:23:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:26:7'): addIndirect: PK_3cmt_des; stim=out, hill ──
  Expected `addIndirect(readModelDb(m), stim = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:26:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), stim = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Failure ('test-addIndirect.R:29:7'): addIndirect: PK_3cmt_des; inhib=out, hill ──
  Expected `addIndirect(readModelDb(m), inhib = v, hill = TRUE)` not to throw any errors.
  Actually got a <simpleError> with message:
    'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addIndirect.R:29:7
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addIndirect(readModelDb(m), inhib = v, hill = TRUE)
   8.   └─nlmixr2lib::addIndirectLin(...)
   9.     └─rxode2::assertRxUi(ui)
  ── Error ('test-addTransit.R:2:3'): addTransit adds transit compartment ────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addTransit(readModelDb("PK_1cmt_des"), 3) at test-addTransit.R:2:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addTransit.R:18:3'): addTransit throws an error with invalid 'central' ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-addTransit.R:18:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addTransit(...)
   8.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addTransit.R:28:3'): addTransit adds transit compartments correctly with 'depot' ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addTransit(readModelDb("PK_1cmt_des"), 3) at test-addTransit.R:28:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addTransit.R:40:3'): addTransit does not add transit compartments  without 'depot' ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-addTransit.R:40:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::addTransit(readModelDb("PK_2cmt_no_depot"), 1)
   8.   └─rxode2::assertRxUi(ui)
  ── Error ('test-addWeibullAbs.R:46:3'): Test addWeibullAbs function removes transit ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─rxode2::rxode2(readModelDb("PK_1cmt_des")) %>% addTransit(3) at test-addWeibullAbs.R:46:3
   2. └─nlmixr2lib::addTransit(., 3)
   3.   └─rxode2::assertRxUi(ui)
  ── Error ('test-convertLogLin.R:3:4'): convertLogLin ───────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::convertLogLin(addDirectLin(readModelDb("PK_2cmt_no_depot"))) at test-convertLogLin.R:3:4
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-convertQuad.R:3:4'): convertQuad ───────────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::convertQuad(...) at test-convertQuad.R:3:4
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-removeDepot.R:7:3'): removeDepot throws error in model with invalid central compartment ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-removeDepot.R:7:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::removeDepot(readModelDb("PK_1cmt_des"), "cent", "depot")
   8.   └─rxode2::assertRxUi(ui)
  ── Error ('test-removeTransit.R:5:3'): removeTransit removes transit compartment ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addTransit(readModelDb("PK_1cmt_des"), 1) at test-removeTransit.R:5:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-removeTransit.R:13:3'): removeTransit removes ktr in model block ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addTransit(readModelDb("PK_1cmt_des"), 1) at test-removeTransit.R:13:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-removeTransit.R:21:3'): removeTransit modifies ODE for central compartment ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addTransit(readModelDb("PK_1cmt_des"), 1) at test-removeTransit.R:21:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-removeTransit.R:28:3'): removeTransit removes lktr in ini block ──
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::addTransit(readModelDb("PK_1cmt_des"), 1) at test-removeTransit.R:28:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-transPk.R:3:3'): transPk -- k ──────────────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::pkTrans(readModelDb("PK_3cmt_des"), "k") at test-transPk.R:3:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-transPk.R:25:3'): transPk -- vss ───────────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-transPk.R:25:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::pkTrans(readModelDb("PK_3cmt_des"), "vss")
   8.   └─rxode2::assertRxUi(ui)
  ── Error ('test-transPk.R:44:3'): transPk -- aob ───────────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-transPk.R:44:3
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─nlmixr2lib::pkTrans(readModelDb("PK_3cmt_des"), "aob")
   8.   └─rxode2::assertRxUi(ui)
  ── Error ('test-transPk.R:60:3'): transPk --k21 ────────────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::pkTrans(readModelDb("PK_3cmt_des"), "k21") at test-transPk.R:60:3
   2.   └─rxode2::assertRxUi(ui)
  ── Error ('test-transPk.R:81:3'): transPk -- alpha ─────────────────────────────
  Error: 'ui' needs to be a rxUi model
  Backtrace:
      ▆
   1. └─nlmixr2lib::pkTrans(readModelDb("PK_3cmt_des"), "alpha") at test-transPk.R:81:3
   2.   └─rxode2::assertRxUi(ui)
  
  [ FAIL 61 | WARN 0 | SKIP 22 | PASS 156 ]
  Error:
  ! Test failures.
  Execution halted