withline is now an info bullet. The
detailslines are info bullets by default, unless the argument is named.
Indirect usages of deprecated features now mention the package that likely used the deprecated feature and recommends contacting the authors (#135).
deprecate_soft()will only warn if the deprecated function is called directly from the package being tested, not one of its dependencies. This ensures that you only see the warning when it’s your responsibility to do something about it (#134).
Soft deprecations now only warn every 8 hours in non-package code (#134).
CRAN release: 2022-09-09
CRAN release: 2021-09-24
last_warnings()has been renamed to
last_warning()has been removed. This is for compatibility with the future
rlang::last_warnings()function to be released in the next rlang version.
CRAN release: 2021-02-15
You can deprecate an argument with
foo(arg =)(#78). This syntax is similar in spirit to the formal arguments of function definitions.
You can deprecate R6 methods by using
A character vector
detailsis now converted into a bulleted list (#55).
Messages for non-prefix functions (like “
x<-()” and “
%>%()”) look a little nicer (#95).
Manually printed warnings now omit the advice footer (#68).
signal_stage()can be used to signal that a function is experimental or superseded. These signals are not currently hooked up to any behaviour, but we’ll add tools in a future release (#44).
lifecycle_cnd_data()has been removed; as far as I can tell it wasn’t used by anyone.
CRAN release: 2020-03-06
Lifecycle warnings are now displayed once every 8 hours.
Added the “superseded” lifecycle stage to the documentation.
expect_defunct()functions for testting lifecycle warnings and errors.
expect_deprecated()automatically sets the
"warning"to enforce warnings at each invokation rather than once per session.
CRAN release: 2019-08-01
Deprecated functions under the control of the developer now warn repeatedly in unit tests.
Deprecation warnings now record a backtrace. Call
lifecycle::last_warning()to print the warnings that occurred during the last command, along with their backtraces.
The naming scheme of signaller functions has been simplified:
The signaller functions now take a version and two descriptors for the deprecated feature and its replacement (the latter is optional). The deprecation message is built from these components. You can pass a
detailsargument to append additional information to the generated deprecation message.
Helpers from rlang’s
compat-lifecycle.Rdrop-in file are now exported in this package.