.name_deprecation {primarycensored} | R Documentation |
Deprecation name helper
Description
Provides lifecycle management consistently across several functions.
Currently uses lifecycle::deprecate_soft()
- i.e. warns only when used
directly. In future versions, this will switch to warning unconditionally
with lifecycle::deprecate_warn()
, then throwing via
lifecycle::deprecate_warn()
, and finally be deleted along with the subject
arguments.
Usage
.name_deprecation(
pdist_name,
dprimary_name,
env = rlang::caller_env(),
user_env = rlang::caller_env(2)
)
Arguments
pdist_name |
the deprecated variable to check |
dprimary_name |
the deprecated variable to check |
env , user_env |
Pair of environments that define where These are only needed if you're calling |