-
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
tibble printing #315
Comments
For comparison, here's how printing works for a
Note also that I'm displaying 20 rows instead of 10. I want to display as much data as possible. A standard terminal has 24 rows, and I'm using all of them: 1 for the command, 1 for the header, 20 for data, 1 for the footer, 1 for the prompt |
Thanks. I agree that There's |
Probably won't have time for a PR for awhile, too busy with my day job. I've already put too much time into this package :) |
I think it's great that effort is being made towards improving the readability of tibbles. There's one thing that I'm not sure about, though, and that's using "T" and "F" instead of "TRUE" and "FALSE" for logicals. Maybe it's just me, but I find it more difficult to quickly distinguish between these two characters than the complete words. Interestingly, "T" and "F" are also considered bad coding style: https://github.com/rdatsci/PackagesInfo/wiki/R-Style-Guide ;) I guess we could do a couple of things here:
These are just some thoughts. I'm curious to hear what others are thinking. PS. I'm extremely grateful for the tidyverse and friends. Without it, I would have probably given up on R! |
@jeroenjanssens: Would you mind opening an issue in pillar? @patperry: #364 is about improving documentation for implementation of |
Makes sense. It's tough to innovate in the space because people have strong opinions about visual design. It's impossible to make everyone happy. Keep up the good work! |
Thanks. Logicals are now printed as |
Thanks @krlmlr ! |
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. |
A few minor suggestions, feel free to ignore. I'm trying to give constructive criticism here, but other people may feel differently and I don't want to start a flame war.
Here's the print output from the latest dev version of tibble:
The
# A tibble: 32 x 11
header is really distracting for people who aren't familiar with tidyverse. If I produce a report for a non-R person using, say, Rmarkdown, they aren't going to want to see# a tibble
everywhere. ("I ran the following regression, and here are the results:# A tibble
...). I realize that this information is helpful for programmers, but isn't it a better use of the space to display an extra row of data?Again, I see why it's nice for the programmer, but it seems unnecessary to display the types. Most of the time, I would rather see more data.
Don't make me add. When I want to know how many rows there are in a table, my natural reflex is to look at the bottom-left corner. In the example above, I would do 10 + 22 in my head. I realize that the 32 is already in the header, above, but I have not managed to train myself to look there first. How about changing the footer to
# ... 32 rows total
? When necessary do# ... 32 rows total; with 3 more columns: x, y, z
A lot of this comes down to deciding who you're trying to optimize the display for. Is it for the programmer? If so, then the current display works nicely. If you have a different audience in mind, you might want to change the default printing. My personal choice would be to have the
print
method optimized for a potentially non-technical client, but then to also provide aschema
function that prints type information, optimized for the programmer.Let me emphasize that I am not trying to start a flame war here. Reasonable people can disagree with these opinions.
The text was updated successfully, but these errors were encountered: