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:
4
R/zzz.R
4
R/zzz.R
@ -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)
|
||||
|
Reference in New Issue
Block a user