tests/testthat/test-tlast-rxS.R

rxTest({
  test_that("rxS for tlast() shouldn't error", {
    expect_error(rxS("d/dt(depot)=exp(log(bio*podo())+log(ktr)+n*log(ktr*tad(depot))-ktr*tad(depot)-lgamma(n+1))-ka*depot"), NA)
    expect_error(rxS("d/dt(depot)=exp(log(bio*podo())+log(ktr)+n*log(ktr*tad)-ktr*tad-lgamma(n+1))-ka*depot"), NA)
  })
})
nlmixr2/rxode2 documentation built on Jan. 11, 2025, 8:48 a.m.