lifecycle (development version)
Lifecycle warnings are now displayed once every 8 hours.
Added the "superseded" lifecycle stage to the documentation.
deprecate_stop()now mentions that function is defunct (#28).
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.
"foo(arg = 'can\\'t be a baz')"to describe that specific inputs for an argument are deprecated (#30, @krlmlr).
is_present()function to test whether the caller has supplied a
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.