good start-up practice

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2022-12-29 16:23:57 +01:00
1 parent 61c0bdb7af
commit 1db74e86cd
4 files changed
+7 -5

No files matched your search

+3 -1
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)