tests/testthat/test_pk_1cmt_inf_dose_from_cmin.R

test_that("PK 1cmt infusion dose calculation", {
  expect_equal(
    round(
      pk_1cmt_inf_dose_from_cmin(
        cmin = .1,
        tau = 24,
        t_inf = 1,
        CL = 10,
        V = 50
      ),
      1
    ),
    544.3
  )
})

Try the clinPK package in your browser

Any scripts or data that you put into this service are public.

clinPK documentation built on May 9, 2022, 9:06 a.m.