tests/testthat/test_value_labels.R

testthat::test_that("value_labels works correctly", {
  iris_new <- iris |>
    labelled::set_value_labels(
      Sepal.Length = c(mediumlength = 5.1, lowerlength = 4.6)
    )
  testthat::expect_no_error(
    iris_new[, 1:4] |>
      corx()
  )
})

Try the corx package in your browser

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

corx documentation built on Nov. 5, 2025, 5:41 p.m.