tests/testthat/helper-encoding.R

local_encoding <- function(encoding, .env = parent.frame()) {
  expect_warning(
    withr::local_locale(LC_CTYPE = encoding, .local_envir = .env),
    "using locale code page other than 65001"
  )
}
thebioengineer/tidytuesdayR documentation built on June 13, 2025, 4:55 p.m.