tests/testthat/test_pk_1cmt_oral.R

test_that("1cmt oral", {
  expect_equal(round(sum(pk_1cmt_oral(KA = 1)$dv), 1), 52.3)
})

test_that("1cmt oral when KA = KEL", {
  expect_equal(round(sum(pk_1cmt_oral(KA = .1)$dv), 1), 35.2)
})
InsightRX/clinPK documentation built on April 24, 2024, 6:01 p.m.