1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 19:01:51 +02:00

good start-up practice

This commit is contained in:
2022-12-29 16:23:57 +01:00
parent 61c0bdb7af
commit 1db74e86cd
4 changed files with 7 additions and 5 deletions

View File

@ -184,7 +184,9 @@ if (utf8_supported && !is_latex) {
AMR_env$AB_lookup <- create_AB_lookup()
AMR_env$AV_lookup <- create_AV_lookup()
AMR_env$MO_lookup <- create_MO_lookup()
}
.onAttach <- function(lib, pkg) {
# if custom ab option is available, load it
if (!is.null(getOption("AMR_custom_ab")) && file.exists(getOption("AMR_custom_ab", default = ""))) {
packageStartupMessage("Adding custom antimicrobials from '", getOption("AMR_custom_ab"), "'...", appendLF = FALSE)