-
Notifications
You must be signed in to change notification settings - Fork 129
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
Greedy printing? #89
Comments
Why only the last column? We could look at evenly chopping space off each column by e.g. reducing precision or truncating. See #51 for pending formatting updates. |
That had crossed my mind, but I thought it would be a nonstarter. It is interesting. But also this: I usually put specific identifying variables up front and I would hate to have less information displayed for those in order to fit in truncated versions of other variables I am less interested in. I could go either way. It just feels like the big swath of whitespace is a lost opportunity to print something about the variables that don't completely fit. |
Extra whitespace is also often caused by column names that are too long. Maybe truncate them to the length of the column, and show the full name below if necessary? We could keep the full width for the first 2 or 3 or so columns. Anyway, I guess showing a part of the last column is not that difficult, we could start with that. |
Yes, it feels like column names should never be allowed to hog horizontal space and force other variables off the edge. Truncating them to the width required by their data seems sensible. |
|
Related, I wonder if tibble should print with a smaller number of digits that |
I'Ve added a first implementation of the "shorter string" idea in #104 |
We've implemented adaptive widths in colformat, which is used as of now. Can you please try, and report any problems to the colformat repo? |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary. |
I run into this fairly often: a character vector that has some long entries and makes the printed
tbl_df
very disappointing. Since it can't be printed in its entirety, nothing gets printed at all and leads to a huge amount of sad whitespace.Could printing just use all the available horizontal space and truncate the last variable? I realize it's hard to say whether the first part or the last part is more interesting to reveal. And that this feature is probably a pain in the rear to implement.
The text was updated successfully, but these errors were encountered: