tests/testthat/test-rxode-issue-067.R

if (!.Call(`_rxode2_isIntel`)) {
  modelCode <- "
TVBASE=14.3;
BASE=TVBASE*exp(EBASE);
SLD(0)=BASE;
d/dt(SLD)=-0.5*SLD;
"
  m1 <- rxode2(modelCode)
  ev <- eventTable() %>% add.sampling(c(0, 1))
  e <- rxSolve(m1, ev, params = c(EBASE = 0.3))
  test_that("Make sure initial conditions work, Issue RxODE#67: baseline works", {
    expect_equal(c(19.3029809483368, 19.3029809483368), e$BASE, tolerance = 1e-6)
  })
}
nlmixr2/rxode2 documentation built on Jan. 11, 2025, 8:48 a.m.