mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 02:03:04 +02:00
remove warnings from unit tests
This commit is contained in:
@ -89,12 +89,13 @@ ab_atc("seephthriaaksone") # and even this works
|
||||
# they use as.ab() internally:
|
||||
ab_name("J01FA01") # "Erythromycin"
|
||||
ab_name("eryt") # "Erythromycin"
|
||||
|
||||
\donttest{
|
||||
if (require("dplyr")) {
|
||||
|
||||
# you can quickly rename <rsi> columns using dplyr >= 1.0.0:
|
||||
# you can quickly rename 'rsi' columns using set_ab_names() with dplyr:
|
||||
example_isolates \%>\%
|
||||
rename_with(as.ab, where(is.rsi))
|
||||
set_ab_names(where(is.rsi), property = "atc")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user