From 1db74e86cd4692a70a27c3dfefc29945b6d936a1 Mon Sep 17 00:00:00 2001 From: "Matthijs S. Berends" Date: Thu, 29 Dec 2022 16:23:57 +0100 Subject: [PATCH] good start-up practice --- .github/workflows/check-old.yaml | 2 +- DESCRIPTION | 4 ++-- NEWS.md | 2 +- R/zzz.R | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-old.yaml b/.github/workflows/check-old.yaml index ad8ec904..58bfe1a9 100644 --- a/.github/workflows/check-old.yaml +++ b/.github/workflows/check-old.yaml @@ -94,7 +94,7 @@ jobs: uses: actions/cache@v2 with: path: ${{ env.R_LIBS_USER }} - key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-v4 + key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-v5 - name: Install R dependencies if: always() diff --git a/DESCRIPTION b/DESCRIPTION index 55d22b7d..8c494af4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: AMR -Version: 1.8.2.9073 -Date: 2022-12-28 +Version: 1.8.2.9074 +Date: 2022-12-29 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) data analysis and to work with microbial and antimicrobial properties by diff --git a/NEWS.md b/NEWS.md index b91ba92f..7f3d8c87 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 1.8.2.9073 +# AMR 1.8.2.9074 *(this beta version will eventually become v2.0! We're happy to reach a new major milestone soon!)* diff --git a/R/zzz.R b/R/zzz.R index 91fa51ad..dcf1dbbb 100755 --- a/R/zzz.R +++ b/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)