tests/testthat/test_pk_1cmt_bolus_dose_from_cmin.R

test_that("PK 1cmt bolus dose calculation", {
  expect_equal(
    round(
      pk_1cmt_bolus_dose_from_cmin(
        cmin = .1,
        tau = 24,
        CL = 10,
        V = 50
      ),
      1
    ),
    602.6
  )
})
InsightRX/clinPK documentation built on April 24, 2024, 6:01 p.m.