View source: R/lifecycle_admiral.R
deprecate_inform | R Documentation |
Wrapper around lifecycle::deprecate_soft()
that messages users about
deprecated features and functions instead of warning.
deprecate_inform(
when,
what,
with = NULL,
details = NULL,
id = NULL,
env = rlang::caller_env(),
user_env = rlang::caller_env(2)
)
when |
A string giving the version when the behaviour was deprecated. |
what |
A string describing what is deprecated:
You can optionally supply the namespace: |
with |
An optional string giving a recommended replacement for the
deprecated behaviour. This takes the same form as |
details |
In most cases the deprecation message can be
automatically generated from
|
id |
The id of the deprecation. A warning is issued only once
for each |
env , user_env |
Pair of environments that define where These are only needed if you're calling |
NULL
, invisibly.
# A Phase 1 deprecated function with custom bulleted list:
deprecate_inform(
when = "1.0.0",
what = "foo()",
details = c(
x = "This message will turn into a warning with release of x.y.z",
i = "See admiral's deprecation guidance:
https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html#deprecation"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.