R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) { # nocov start
  prev_options <- options()

  new_options <- list(
    translated_path = NULL,
    translated_pattern = ".*\\.json",
    translated_locale = "en_US"
  )

  unset_inds <- !(names(new_options) %in% names(prev_options))
  if (any(unset_inds)) {
    options(new_options[unset_inds])
  }

  invisible()
} # nocov end

Try the translated package in your browser

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

translated documentation built on April 25, 2023, 5:09 p.m.