mirror of
https://github.com/msberends/AMR.git
synced 2025-07-10 12:21:53 +02:00
no obligatory note on startup
This commit is contained in:
13
R/zzz.R
13
R/zzz.R
@ -186,19 +186,6 @@ if (utf8_supported && !is_latex) {
|
||||
AMR_env$MO_lookup <- create_MO_lookup()
|
||||
}
|
||||
|
||||
.onAttach <- function(lib, pkg) {
|
||||
if (interactive() && is.null(getOption("AMR_locale", default = NULL))) {
|
||||
current_lang <- get_AMR_locale()
|
||||
if (current_lang != "en") {
|
||||
packageStartupMessage(word_wrap(
|
||||
"Assuming the ", LANGUAGES_SUPPORTED_NAMES[[current_lang]]$exonym, " language (",
|
||||
LANGUAGES_SUPPORTED_NAMES[[current_lang]]$endonym, ") for the AMR package. See `set_AMR_locale()` to change this or to silence this note.",
|
||||
add_fn = list(font_blue), as_note = TRUE
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Helper functions --------------------------------------------------------
|
||||
|
||||
create_AB_lookup <- function() {
|
||||
|
Reference in New Issue
Block a user