Skip to content

Commit

Permalink
Remove cli dependency in standalone-lifecycle (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Oct 7, 2024
1 parent 4476cd8 commit 3d48c13
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions R/standalone-lifecycle.R
Original file line number Diff line number Diff line change
@@ -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)
# ---
#
Expand All @@ -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
Expand All @@ -34,10 +42,6 @@
#
# - Soft-namespaced private objects.
#
# 2024-09-27
#
# - Removed call to `glue::glue()` in `.rlang_lifecycle_verbosity()`
#
# nocov start


Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 3d48c13

Please sign in to comment.