Expand description
Lifecycle support for R package deprecation management.
This module provides integration with R’s lifecycle package for managing
experimental, deprecated, and superseded functions.
§Usage
Mark functions with lifecycle attributes:
ⓘ
// Using Rust's deprecated attribute
#[deprecated(since = "0.4.0", note = "Use new_fn() instead")]
#[miniextendr]
pub fn old_fn(x: i32) -> i32 { x }
// Using miniextendr's lifecycle attribute
#[miniextendr(lifecycle = "experimental")]
pub fn new_fn(x: i32) -> i32 { x * 2 }§Lifecycle Stages
experimental: Function is experimental and may change without noticestable: Function is stable (default, no badge/warning needed)superseded: Function has a better alternative but will be maintaineddeprecated: Function should no longer be used and may be removeddefunct: Function no longer works and throws an error
Structs§
- Lifecycle
Spec - Full lifecycle specification for a function or method.
Enums§
- Lifecycle
Stage - Lifecycle stage for a function, method, or argument.
Functions§
- collect_
lifecycle_ imports - Collect the
@importFrom lifecycle ...roxygen tag needed for a set of lifecycle specs. - inject_
lifecycle_ badge - Inject lifecycle badge into roxygen tags if not already present.
- inject_
lifecycle_ imports - Inject
@importFrom lifecycleroxygen tags for the signal function and badge. - parse_
lifecycle_ attr - Parse lifecycle spec from miniextendr attribute arguments.
- parse_
rust_ deprecated - Extract lifecycle info from a
#[deprecated]attribute.