Running 'testthat.R' [473s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(campsis)
  Loading required package: campsismod
  
  Attaching package: 'campsismod'
  
  The following object is masked from 'package:utils':
  
      find
  
  The following objects are masked from 'package:base':
  
      Position, as.data.frame, replace, sort, toString, write
  
  
  Attaching package: 'campsis'
  
  The following object is masked from 'package:stats':
  
      simulate
  
  The following object is masked from 'package:base':
  
      sample
  
  > test_check("campsis")
  Model:
  
  KA=THETA_KA*exp(ETA_KA);
  CL=THETA_CL*exp(ETA_CL);
  V=THETA_V*exp(ETA_V)*BW/70;
  S2=V;
  ARM=ARM;
  EVENT_RELATED=EVENT_RELATED;
  d/dt(A_DEPOT)=-KA*A_DEPOT;
  d/dt(A_CENTRAL)=-CL*A_CENTRAL/V+KA*A_DEPOT;
  d/dt(A_OUTPUT)=CL*A_CENTRAL/V;
  F=A_CENTRAL/S2;
  CP=F;
  OBS_CP=CP*(EPS_PROP+1);
  Y=OBS_CP;
  
  
  ---:: stderr ::---------------------------------------------
  
  ------------------------------------------------------------
  
  ---:: stderr ::---------------------------------------------
  
  ------------------------------------------------------------
  
  ---:: stderr ::---------------------------------------------
  
  ------------------------------------------------------------
  [ FAIL 1 | WARN 142 | SKIP 25 | PASS 440 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (25)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (???): Simulate infusion using rate in dataset (rxode2/mrgsolve) ──────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map2(.x, .y, .f, ...)`: ℹ In index: 1.
  Caused by error:
  ! error building model
  Backtrace:
       ▆
    1. ├─campsis::simulate(...)
    2. ├─campsis::simulate(...)
    3. │ └─campsis:::simulateDelegate(...)
    4. │   └─campsis:::simulateScenarios(...)
    5. │     └─purrr::map2_df(...)
    6. │       └─purrr::map2(.x, .y, .f, ...)
    7. │         └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
    8. │           ├─purrr:::with_indexed_errors(...)
    9. │           │ └─base::withCallingHandlers(...)
   10. │           ├─purrr:::call_with_cleanup(...)
   11. │           └─campsis (local) .f(.x[[i]], .y[[i]], ...)
   12. │             └─campsis:::simulateDelegateCore(...)
   13. │               ├─campsis::simulate(...)
   14. │               └─campsis::simulate(...)
   15. │                 └─rxode2::rxode2(paste0(rxmod@code, collapse = "\n"))
   16. │                   └─.env$compile()
   17. │                     ├─base::with(...)
   18. │                     └─base::with.default(...)
   19. │                       └─base::eval(substitute(expr), data, enclos = parent.frame())
   20. │                         └─base::eval(substitute(expr), data, enclos = parent.frame())
   21. │                           ├─.rx$.rxWithWd(...)
   22. │                           │ └─base::force(code)
   23. │                           ├─.rx$rxCompile(.mv, debug = debug, package = NULL)
   24. │                           └─rxode2:::rxCompile.rxModelVars(.mv, debug = debug, package = NULL)
   25. │                             └─rxode2 (local) .badBuild("error building model")
   26. │                               └─base::stop(msg, call. = FALSE)
   27. └─base::.handleSimpleError(`<fn>`, "error building model", base::quote(NULL))
   28.   └─purrr (local) h(simpleError(msg, call))
   29.     └─cli::cli_abort(...)
   30.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 142 | SKIP 25 | PASS 440 ]
  Error: Test failures
  Execution halted