lifecycle (development version) Unreleased

lifecycle 1.0.0 Unreleased

  • New vignettes:

  • In deprecate_soft(), deprecate_warn(), and deprecate_stop():

    • You can deprecate an argument with foo(arg) instead of foo(arg =) (#78). This syntax is similar in spirit to the formal arguments of function definitions.

    • You can deprecate R6 methods by using class$method() (#54).

    • A character vector details is 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).

  • Experimental 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.

lifecycle 0.2.0 2020-03-06

lifecycle 0.1.0 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_warnings() and 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 details argument to append additional information to the generated deprecation message.

  • Helpers from rlang’s compat-lifecycle.R drop-in file are now exported in this package.