1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 18:41:58 +02:00

(v1.7.1.9077) skimr support only for newer R versions

This commit is contained in:
2021-12-23 13:38:25 +01:00
parent ed22b83c28
commit 75dac113b6
9 changed files with 45 additions and 27 deletions

View File

@ -61,6 +61,9 @@ expect_equal(as.character(as.ab(c("mreopenem", "co-maoxiclav"))),
expect_message(as.ab("cipro mero"))
# based on Levenshtein distance
expect_identical(ab_name("ceftazidim/avibactam", language = NULL), "Ceftazidime/avibactam")
# assigning and subsetting
x <- antibiotics$ab
expect_inherits(x[1], "ab")

View File

@ -52,9 +52,6 @@ import_functions <- c(
call_functions <- c(
# cleaner
"freq.default" = "cleaner",
# skimr
"inline_hist" = "skimr",
"sfl" = "skimr",
# readxl
"read_excel" = "readxl",
# ggplot2
@ -85,6 +82,12 @@ call_functions <- c(
"xlab" = "ggplot2",
"ylab" = "ggplot2"
)
if (pkg_is_available("skimr", also_load = FALSE, min_version = "2.0.0")) {
call_functions <- c(call_functions,
# skimr
"inline_hist" = "skimr",
"sfl" = "skimr")
}
extended_functions <- c(
"freq" = "cleaner",