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)