Running 'testthat.R' [4s]
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")
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 5 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-addEta.R:3:3'): addEta named parameter ─────────────────────────
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addEta(model, eta = "lka")) at test-addEta.R:3:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addEta(model, eta = "lka")
   4. │ └─nlmixr2lib:::.getVarLhs(model)
   5. └─base::loadNamespace(x)
   6.   ├─base::namespaceImportFrom(...)
   7.   │ └─base::asNamespace(ns)
   8.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   9.     └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addEta.R:22:3'): addEta mu-ref parameter ───────────────────────
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addEta(model, eta = "ka")) at test-addEta.R:22:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addEta(model, eta = "ka")
   4. │ └─nlmixr2lib:::.getVarLhs(model)
   5. └─base::loadNamespace(x)
   6.   ├─base::namespaceImportFrom(...)
   7.   │ └─base::asNamespace(ns)
   8.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   9.     └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addEta.R:41:3'): addEta multiple parameter, mu-ref and not ─────
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test-addEta.R:41:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addEta(model, eta = c("lvc", "ka"))
   4. │ └─nlmixr2lib:::.getVarLhs(model)
   5. └─base::loadNamespace(x)
   6.   ├─base::namespaceImportFrom(...)
   7.   │ └─base::asNamespace(ns)
   8.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   9.     └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addEta.R:72:3'): addEta named parameter ────────────────────────
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addEta(model, eta = "lka")) at test-addEta.R:72:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addEta(model, eta = "lka")
   4. │ └─nlmixr2lib:::.getVarLhs(model)
   5. └─base::loadNamespace(x)
   6.   ├─base::namespaceImportFrom(...)
   7.   │ └─base::asNamespace(ns)
   8.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   9.     └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addEta.R:99:3'): compiled ui object ────────────────────────────
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-addEta.R:99:3
   2.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addEta.R:123:3'): addEta() correctly adds IIV when there is a covariate (#27) ──
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(newEtaRemap <- addEta(model, "cl")) at test-addEta.R:123:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addEta(model, "cl")
   4. │ └─nlmixr2lib:::.getVarLhs(model)
   5. └─base::loadNamespace(x)
   6.   ├─base::namespaceImportFrom(...)
   7.   │ └─base::asNamespace(ns)
   8.   └─base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
   9.     └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addResErr.R:3:3'): addResErr with each expected residual distribution and combinations ──
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdateAdd <- addResErr(model, reserr = "addSd")) at test-addResErr.R:3:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addResErr(model, reserr = "addSd")
   4. └─base::loadNamespace(x)
   5.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addResErr.R:53:3'): addResErr with named numeric values sets the reserr ──
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdateAdd <- addResErr(model, reserr = c(addSd = 10))) at test-addResErr.R:53:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addResErr(model, reserr = c(addSd = 10))
   4. └─base::loadNamespace(x)
   5.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addResErr.R:62:3'): addResErr with des model, changing to additive error ──
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addResErr(model, reserr = "addSd")) at test-addResErr.R:62:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addResErr(model, reserr = "addSd")
   4. └─base::loadNamespace(x)
   5.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addResErr.R:81:3'): addResErr with linCmt model, changing to additive error ──
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addResErr(model, reserr = "addSd")) at test-addResErr.R:81:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addResErr(model, reserr = "addSd")
   4. └─base::loadNamespace(x)
   5.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addResErr.R:100:3'): addResErr with des model, changing to additive and proportional error ──
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test-addResErr.R:100:3
   2. │ └─base::withCallingHandlers(...)
   3. ├─nlmixr2lib::addResErr(model, reserr = c("addSd", "propSd"))
   4. └─base::loadNamespace(x)
   5.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-addResErr.R:125:3'): addResErr bad error type ──────────────────
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-addResErr.R:125:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_error(addResErr(model, reserr = "foo"), regexp = "Must be a subset of")
    4. │ └─testthat:::expect_condition_matching(...)
    5. │   └─testthat:::quasi_capture(...)
    6. │     ├─testthat (local) .capture(...)
    7. │     │ └─base::withCallingHandlers(...)
    8. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─nlmixr2lib::addResErr(model, reserr = "foo")
   10. └─base::loadNamespace(x)
   11.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-searchReplace.R:3:3'): searchReplace ───────────────────────────
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-searchReplace.R:3:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base (local) functionBody(searchReplace(model, find = "lka", replace = "lka + etalka"))
   5. ├─nlmixr2lib::searchReplace(model, find = "lka", replace = "lka + etalka")
   6. └─base::loadNamespace(x)
   7.   └─base (local) runHook(".onLoad", env, package.lib, package)
  ── Error ('test-updateOncologyXenograftSimeoni2004.R:2:3'): updateOncologyXenograftSimeoni2004 ──
  Error: .onLoad failed in loadNamespace() for 'rxode2', details:
    call: NULL
    error: rxode2 compiled with rxode2parse with a different solving structure
  can try: install.packages('rxode2', type='source')
  Backtrace:
      ▆
   1. ├─base::suppressMessages(origModel <- rxode2::rxode(readModelDb("oncology_xenograft_simeoni_2004"))) at test-updateOncologyXenograftSimeoni2004.R:2:3
   2. │ └─base::withCallingHandlers(...)
   3. └─base::loadNamespace(x)
   4.   └─base (local) runHook(".onLoad", env, package.lib, package)
  
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 5 ]
  Error: Test failures
  Execution halted