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)
})

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.