Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions R/standalone-lifecycle.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
#
# - Soft-namespaced private objects.
#
# 2024-09-27
#
# - Removed call to `glue::glue()` in `.rlang_lifecycle_verbosity()`
#
# nocov start


Expand Down Expand Up @@ -235,12 +239,10 @@ with_lifecycle_errors <- function(expr) {

if (!rlang::is_string(opt, c("quiet", "default", "warning", "error"))) {
options(lifecycle_verbosity = "default")
rlang::warn(glue::glue(
"
The `lifecycle_verbosity` option must be set to one of:
\"quiet\", \"default\", \"warning\", or \"error\".
Resetting to \"default\".
"
rlang::warn(paste(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that this is changing the formatting (I think I used glue for newlines). That doesn't really matter though.

"The `lifecycle_verbosity` option must be set to one of:",
'"quiet", "default", "warning", or "error".',
'Resetting to "default".'
))
}

Expand Down
Loading