tests/testthat/test-check_cha.R

library(testthat)
data("melanoma", package = "boot")

test_that("checking for missing values for character columns works", {
  melanoma2 <- melanoma
  result= check_cha('status', melanoma2)

  expect_s3_class(result, "table")
})

Try the lulab.utils package in your browser

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

lulab.utils documentation built on Oct. 7, 2024, 5:08 p.m.