Skip to content
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

Improve text_*() error messages #1774

Merged
merged 7 commits into from
Jul 12, 2024
Merged

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Jul 12, 2024

Thought I was done with error messages, but no!

I started this PR as a wish to improve test coverage.

But turns out more work was required to get the text_*() to have consistent error messages (similar to tab_style() and tab_footnote().

While working on that, I discovered an error in tidyselect (r-lib/tidyselect#352) It means that some errors will improve naturally when the next tidyselect version will be out.


Test coverage

https://app.codecov.io/gh/rstudio/gt/blob/master/R%2Ftext_transform.R

I also deleted dt_col_merge_init() as it is unused in the codebase. https://app.codecov.io/gh/rstudio/gt/blob/master/R%2Fdt_cols_merge.R

I created the text_transform_impl() as a way to easily get Error in text_case_match()`

Coverage data https://app.codecov.io/gh/rstudio/gt/pull/1774

@olivroy olivroy changed the title Imp Improve text_*() error messages Jul 12, 2024
Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

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

LGTM!

@rich-iannone rich-iannone merged commit bf53121 into rstudio:master Jul 12, 2024
12 checks passed
@olivroy olivroy deleted the cols-width-gtable branch July 12, 2024 13:16
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