mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 06:30:48 +01:00
no obligatory note on startup
This commit is contained in:
1 parent
56dad34e68
commit
e7d7b94b3e
5 files changed
+23
-22
No files matched your search
@@ -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