Skip to content

Commit 317efce

Browse files
committed
add de-escalation option
1 parent d8fe8ed commit 317efce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

R/utilities.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,12 @@ deprecate <- function(when, ..., id = NULL, always = FALSE, user_env = NULL,
791791
full <- "3.4.0"
792792
soft <- utils::packageVersion("ggplot2")
793793

794+
if (identical(escalate, "delay")) {
795+
soft <- full
796+
full <- defunct
797+
defunct <- "0.0.0"
798+
}
799+
794800
version <- as.package_version(when)
795801
if (version < defunct || identical(escalate, "abort")) {
796802
lifecycle::deprecate_stop(when, ...)

0 commit comments

Comments
 (0)