1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-11 22:21:53 +02:00

(v2.1.1.9190) antibiotics deprecation in antibiogram()

This commit is contained in:
2025-03-09 10:41:11 +01:00
parent c7af397edf
commit a2c2be23c1
26 changed files with 203 additions and 180 deletions

View File

@ -492,9 +492,11 @@ write_md5 <- function(object) {
close(conn)
}
changed_md5 <- function(object) {
path <- paste0("data-raw/", deparse(substitute(object)), ".md5")
if (!file.exists(path)) return(TRUE)
tryCatch(
{
conn <- file(paste0("data-raw/", deparse(substitute(object)), ".md5"))
conn <- file(path)
compared <- md5(object) != readLines(con = conn)
close(conn)
compared