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

truncate variable descriptions that are wider than the console #544

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

simonpcouch
Copy link
Collaborator

Closes #543. Takes the tibble-esque approach of just truncating the variable descriptions and then ending with ellipses rather than "wrapping" the whole description to the console width, though I'm game to do the latter if we feel that's a better approach.

Comment on lines +10 to +12
test_that("print method fits linewidth with many predictors (#543)", {
expect_snapshot(specify(mtcars, mpg ~ cyl + disp + hp + drat + wt + qsec))
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note that test_that() runs inside of local_reproducible_output(), so this test should always have a console width of 80.

@ismayc
Copy link
Collaborator

ismayc commented Sep 18, 2024

Nice! Looks good to me. Thanks for the quick turnaround.

@simonpcouch simonpcouch merged commit 288542b into main Sep 18, 2024
8 checks passed
@simonpcouch simonpcouch deleted the width-543 branch September 18, 2024 18:15
Copy link

github-actions bot commented Oct 4, 2024

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fit() explanatory variables flow beyond the usual width
2 participants