1
0
mirror of https://github.com/msberends/AMR.git synced 2025-09-02 14:24:10 +02:00

(v2.1.1.9230) deprecated resistance_predict(), data set folder name without space

This commit is contained in:
2025-03-28 16:48:56 +01:00
parent bd873ac1bc
commit b972bbb96f
25 changed files with 410 additions and 312 deletions

View File

@@ -68,7 +68,9 @@ deprecation_warning <- function(old = NULL, new = NULL, fn = NULL, extra_msg = N
AMR_env[[paste0("deprecated_", old)]] <- 1
if (isTRUE(is_function)) {
old <- paste0(old, "()")
new <- paste0(new, "()")
if (!is.null(new)) {
new <- paste0(new, "()")
}
type <- "function"
} else if (isTRUE(is_dataset)) {
type <- "dataset"
@@ -82,7 +84,7 @@ deprecation_warning <- function(old = NULL, new = NULL, fn = NULL, extra_msg = N
}
warning_(
ifelse(is.null(new),
paste0("The `", old, "` ", type, " is no longer in use"),
paste0("The `", old, "` ", type, " is deprecated"),
ifelse(type == "dataset",
paste0("The `", old, "` ", type, " has been renamed to `", new, "`"),
ifelse(type == "argument",