Skip to content

Deprecate use_tidy_style() #2138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 14, 2025
Merged

Deprecate use_tidy_style() #2138

merged 2 commits into from
Jul 14, 2025

Conversation

jennybc
Copy link
Member

@jennybc jennybc commented Jul 10, 2025

Closes #2110

@jennybc jennybc requested review from DavisVaughan and hadley July 10, 2025 20:54
#' @export
#' @rdname tidy-deprecated
use_tidy_style <- function(strict = TRUE) {
lifecycle::deprecate_warn(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
lifecycle::deprecate_warn(
lifecycle::deprecate_stop(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. In theory I'm on board with deprecate_stop(). But it felt like going from 0 to 60.

If anyone's got use_tidy_style() in teaching materials or personal workflow scripts or similar, it feels like an error versus warning might make a big difference. I went with deprecate_warning() since it feels like a state we should pass through.

Do you feel strongly that we go straight to deprecate_stop()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on a GitHub search, I do think we should at least pass through a deprecate_warn() phase.

@jennybc jennybc merged commit 505e76f into main Jul 14, 2025
13 checks passed
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.

Rename use_tidy_style() to use_styler()
3 participants