tests/testthat/test_mol2conc.R

test_that("Mol --> conc", {
  expect_equal(
    mol2conc(
      mol = 1,
      mol_weight = 100,
      unit_conc = "g/L",
      unit_mol = "mol/L"
    )$value,
    100
  )
})

Try the clinPK package in your browser

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

clinPK documentation built on May 29, 2024, 3:50 a.m.