tests/testthat/test_check_covs_available.R

test_that('returns false for missing', {
  expect_false(
    check_covs_available(c('height'), list(height = NULL), verbose = FALSE)
  )
})
test_that("returns true for not missing", {
  expect_true(
    check_covs_available(c('height'), list(height = 9), verbose = FALSE)
  )
})

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.