From 66da77f7d5c7adf84152c05363d18c0828bddaf3 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Wed, 5 May 2021 10:41:31 -0400 Subject: [PATCH] Add legacy support for `peek_option("rlang:::message_always")` --- R/cnd-signal.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/cnd-signal.R b/R/cnd-signal.R index 8444d6af59..bcc507a007 100644 --- a/R/cnd-signal.R +++ b/R/cnd-signal.R @@ -227,6 +227,10 @@ needs_signal <- function(frequency, id, env, opt) { if (is_string(frequency, "always")) { return(TRUE) } + # Safe to remove in 2022 + if (is_true(peek_option("rlang:::message_always"))) { + return(TRUE) + } if (is_null(id)) { abort("`.frequency_id` should be supplied with `.frequency`.")