tests/testthat/test-colby_constructors.R

test_that("analyze's var_labels accepts a vector of length 1 consisting of a single NA", {
  testthat::expect_no_error(
    basic_table() %>%
      split_cols_by("ARM") %>%
      analyze("AGE", var_labels = c(AGE = NA))
  )
})

Try the rtables package in your browser

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

rtables documentation built on June 20, 2025, 1:09 a.m.