Skip to content

Deprecate dist_cdf() and dist_quantile() - #176

Merged
sbfnk merged 2 commits into
mainfrom
deprecate-dist-cdf-quantile
Nov 3, 2026
Merged

sbfnk merged 2 commits into
mainfrom
deprecate-dist-cdf-quantile

Conversation

@sbfnk-bot

Copy link
Copy Markdown
Collaborator

Description

This PR deprecates dist_cdf() and dist_quantile(), which were exported in 0.3.0. They return the unbounded base-R p*/q* function and ignore any max/cdf_max bound from bound_dist(), so on a truncated distribution they quietly give the wrong answer. cdf() and quantile() cover the same need and respect the bound.

Both functions still work but now warn via lifecycle::deprecate_warn(). The per-family generics behind them become the unexported family_cdf() and family_quantile(), so cdf(), quantile(), discretisation and bounded sampling don't trigger the warning. The version moves to the development 0.3.0.9000, and NEWS has a Deprecations entry.

Initial submission checklist

  • I have tested my changes locally (using devtools::test() and devtools::check()).
  • I have added or updated unit tests where necessary.
  • I have updated the documentation if required and rebuilt docs if yes (using devtools::document()).
  • I have followed the established coding standards (and checked using lintr::lint_package()).
  • I have added a news item linked to this PR.

…ile()

Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
@sbfnk-bot
sbfnk-bot marked this pull request as ready for review October 12, 2026 21:30
@sbfnk-bot
sbfnk-bot requested a review from sbfnk October 12, 2026 21:30
Co-authored-by: sbfnk <sebastian.funk@lshtm.ac.uk>
@sbfnk
sbfnk merged commit 14cb795 into main Nov 3, 2026
11 checks passed
@sbfnk
sbfnk deleted the deprecate-dist-cdf-quantile branch November 3, 2026 09:59
@sbfnk-bot sbfnk-bot mentioned this pull request Nov 3, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants