1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-12 09:41:49 +02:00

rename pre-commit hook to pre-commit checks (no-check)

This commit is contained in:
2024-04-23 10:55:48 +02:00
parent 04df6dfcf5
commit 0d8a91db49
10 changed files with 21 additions and 19 deletions

View File

@ -611,7 +611,7 @@ ab_select_exec <- function(function_name,
} else if (isTRUE(function_name == "antimycobacterials")) {
abx <- AMR_env$AB_lookup$ab[which(AMR_env$AB_lookup$group == "Antimycobacterials")]
} else {
# their upper case equivalent are vectors with class 'ab', created in data-raw/_pre_commit_hook.R
# their upper case equivalent are vectors with class 'ab', created in data-raw/_pre_commit_checks.R
# carbapenems() gets its codes from AMR:::AB_CARBAPENEMS
abx <- get(paste0("AB_", toupper(function_name)), envir = asNamespace("AMR"))
# manually added codes from add_custom_antimicrobials() must also be supported