Deprecate threads argument across dig_* functions - #53
Conversation
Co-authored-by: beerda <26056018+beerda@users.noreply.github.com>
|
@copilot change the "when" version to "2.3.0" |
Co-authored-by: beerda <26056018+beerda@users.noreply.github.com>
|
@copilot you have wrongly updated the "when" value also in other cases than just for threads argument. Fix it = revert the "when" value for occurences other than for "threads". Also put the deprecation test of "threads" argument just before ".must_be...." test of threads. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #53 +/- ##
==========================================
+ Coverage 87.09% 87.13% +0.04%
==========================================
Files 127 127
Lines 6469 6508 +39
==========================================
+ Hits 5634 5671 +37
- Misses 835 837 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: beerda <26056018+beerda@users.noreply.github.com>
Fixed. I reverted |
|
@copilot deprecate "threads" also in "dig()" function in R/dig.R |
Co-authored-by: beerda <26056018+beerda@users.noreply.github.com>
|
@copilot fix duplicate nested warning also in other dig* functions after you have introduced that warning in dig() |
Checked and aligned all nested |
This PR aligns
threadshandling with the existing lifecycle-based deprecation pattern used for deprecated arguments indig_associations(). Thethreadsargument is now consistently deprecated across alldig_*APIs that expose it.API deprecation alignment
threads = deprecated():dig_associations()dig_grid()dig_correlations()dig_baseline_contrasts()dig_complement_contrasts()dig_paired_baseline_contrasts()dig_tautologies()Lifecycle warning behavior
lifecycle::is_present(threads)checks withdeprecate_warn(...)in each affected function.threads <- 1Lwhenthreadsis omitted in core call paths.Nested call de-duplication
deprecate_threads = FALSEflag inerror_contextwhere needed to avoid repeated warnings when one deprecated public API calls another.Documentation updates
@param threadsroxygen text in all affected files to explicitly mark the argument as deprecated.