R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname) {
    if (is.null(getOption("transltr.path", NULL))) {
        # Default path to the main Exported Translator file.
        options(transltr.path = file.path("inst", "transltr", "_translator.yml"))
    }
    if (is.null(getOption("transltr.verbose", NULL))) {
        # Should functions report basic information by default?
        options(transltr.verbose = TRUE)
    }

    return(invisible())
}

Try the transltr package in your browser

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

transltr documentation built on April 3, 2025, 9:33 p.m.