Running ‘testthat.R’ [18s/65s]
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 4 | WARN 0 | SKIP 0 | PASS 23 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-addEta.R:3:3'): addEta named parameter ─────────────────────────
  Error: invalid expr for ini() modification
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addEta(model, eta = "lka")) at test-addEta.R:3:2
   2. │ └─base::withCallingHandlers(...)
   3. └─nlmixr2lib::addEta(model, eta = "lka")
   4.   ├─base::do.call(rxode2::ini, iniArgs)
   5.   ├─rxode2 (local) `<fn>`(`<fn>`, etalka ~ 0.1)
   6.   └─rxode2:::ini.default(`<fn>`, etalka ~ 0.1)
   7.     └─base::lapply(...)
   8.       └─rxode2 (local) FUN(X[[i]], ...)
   9.         └─rxode2::.iniHandleLine(...)
  ── Error ('test-addEta.R:22:3'): addEta mu-ref parameter ───────────────────────
  Error: invalid expr for ini() modification
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addEta(model, eta = "ka")) at test-addEta.R:22:2
   2. │ └─base::withCallingHandlers(...)
   3. └─nlmixr2lib::addEta(model, eta = "ka")
   4.   ├─base::do.call(rxode2::ini, iniArgs)
   5.   ├─rxode2 (local) `<fn>`(`<fn>`, etalka ~ 0.1)
   6.   └─rxode2:::ini.default(`<fn>`, etalka ~ 0.1)
   7.     └─base::lapply(...)
   8.       └─rxode2 (local) FUN(X[[i]], ...)
   9.         └─rxode2::.iniHandleLine(...)
  ── Error ('test-addEta.R:41:3'): addEta multiple parameter, mu-ref and not ─────
  Error: invalid expr for ini() modification
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test-addEta.R:41:2
   2. │ └─base::withCallingHandlers(...)
   3. └─nlmixr2lib::addEta(model, eta = c("lvc", "ka"))
   4.   ├─base::do.call(rxode2::ini, iniArgs)
   5.   ├─rxode2 (local) `<fn>`(`<fn>`, etalvc ~ 0.1, etalka ~ 0.1)
   6.   └─rxode2:::ini.default(`<fn>`, etalvc ~ 0.1, etalka ~ 0.1)
   7.     └─base::lapply(...)
   8.       └─rxode2 (local) FUN(X[[i]], ...)
   9.         └─rxode2::.iniHandleLine(...)
  ── Error ('test-addEta.R:72:3'): addEta named parameter ────────────────────────
  Error: invalid expr for ini() modification
  Backtrace:
      ▆
   1. ├─base::suppressMessages(modelUpdate <- addEta(model, eta = "lka")) at test-addEta.R:72:2
   2. │ └─base::withCallingHandlers(...)
   3. └─nlmixr2lib::addEta(model, eta = "lka")
   4.   ├─base::do.call(rxode2::ini, iniArgs)
   5.   ├─rxode2 (local) `<fn>`(`<fn>`, etalka ~ 0.1)
   6.   └─rxode2:::ini.default(`<fn>`, etalka ~ 0.1)
   7.     └─base::lapply(...)
   8.       └─rxode2 (local) FUN(X[[i]], ...)
   9.         └─rxode2::.iniHandleLine(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 23 ]
  Error: Test failures
  Execution halted