Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions R/standalone-lifecycle.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
#
# ## Changelog
#
# 2025-08-02
#
# - Added `deprecated()` and `is_present()`, intended to use as
# deprecated arguments' default value.
# Same as `lifecycle::deprecated()` and `lifecycle::is_present()`.
#
# 2024-09-27
#
# - Depends on `standalone-cli.R` instead of the cli package.
Expand Down Expand Up @@ -253,4 +259,10 @@ with_lifecycle_errors <- function(expr) {
opt
}

deprecated <- function() missing_arg()

is_present <- function(arg) {
!is_missing(maybe_missing(arg))
}

# nocov end
2 changes: 0 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
deprecated <- function() missing_arg()

abort_coercion <- function(
x,
to_type,
Expand Down
Loading