tests/testthat/helpers.R

skip_if_no_encoding <- function(enc) {
  tryCatch({
    iconv("xxx", from = env, to = env)
    TRUE
  }, error = function(err) NULL)
  testthat::skip(paste("No encoding:", enc))
}

Try the archive package in your browser

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

archive documentation built on April 3, 2025, 9:08 p.m.