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"
  )
}

Try the tidytuesdayR package in your browser

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

tidytuesdayR documentation built on Sept. 14, 2024, 9:08 a.m.