powered by
crew
Show an informative warning when a crew feature is deprecated.
crew_deprecate( name, date, version, alternative, condition = "warning", value = "x", skip_cran = FALSE, frequency = "always" )
NULL (invisibly). Throws a warning if a feature is deprecated.
NULL
Name of the feature (function or argument) to deprecate.
Date of deprecation.
Package version when deprecation was instated.
Message about an alternative.
Either "warning" or "message" to indicate the type of condition thrown on deprecation.
Value of the object. Deprecation is skipped if value is NULL.
value
Logical of length 1, whether to skip the deprecation warning or message on CRAN.
Character of length 1, passed to the .frequency argument of rlang::warn().
.frequency
rlang::warn()
Other utility: crew_assert(), crew_clean(), crew_eval(), crew_random_name(), crew_retry(), crew_terminate_process(), crew_terminate_signal(), crew_worker()
crew_assert()
crew_clean()
crew_eval()
crew_random_name()
crew_retry()
crew_terminate_process()
crew_terminate_signal()
crew_worker()
suppressWarnings( crew_deprecate( name = "auto_scale", date = "2023-05-18", version = "0.2.0", alternative = "use the scale argument of push(), pop(), and wait()." ) )
Run the code above in your browser using DataLab