tests/testthat/test_auc2dose.R

test_that("auc2dose empty call", {
  expect_error(auc2dose())
})

test_that("auc2dose ", {
  expect_equal(auc2dose(auc = 500, CL=10, V=100), 5000)
})

test_that("auc2dose partial auc", {
  expect_equal(round(auc2dose(auc = 500, CL=10, V=100, t_auc = 7)), 9932)
})

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.