From 3d48c13d052724cd5997a730ea41bc8e6991691b Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:42:32 +0900 Subject: [PATCH] Remove cli dependency in standalone-lifecycle (#1753) --- R/standalone-lifecycle.R | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/R/standalone-lifecycle.R b/R/standalone-lifecycle.R index c8dba6ab8..b4f705c4b 100644 --- a/R/standalone-lifecycle.R +++ b/R/standalone-lifecycle.R @@ -1,8 +1,9 @@ # --- # repo: r-lib/rlang # file: standalone-lifecycle.R -# last-updated: 2023-02-23 +# last-updated: 2024-10-05 # license: https://unlicense.org +# dependencies: standalone-cli.R # imports: rlang (>= 1.0.0) # --- # @@ -13,11 +14,18 @@ # # ## Changelog # +# 2024-09-27 +# +# - Depends on `standalone-cli.R` instead of the cli package. +# +# 2024-09-27 +# +# - Removed call to `glue::glue()` in `.rlang_lifecycle_verbosity()` +# # 2023-02-23 # # - Updated the API and internals to match modern lifecycle tools. # -# # 2021-04-19 # # - Removed `lifecycle()` function. You can now use the following in @@ -34,10 +42,6 @@ # # - Soft-namespaced private objects. # -# 2024-09-27 -# -# - Removed call to `glue::glue()` in `.rlang_lifecycle_verbosity()` -# # nocov start @@ -170,7 +174,7 @@ deprecate_warn <- function(msg, } deprecate_stop <- function(msg) { - msg <- cli::format_error(msg) + msg <- format_error(msg) .rlang_lifecycle_signal_stage(msg, "deprecated") stop(rlang::cnd(