r-lib / pillar

Format columns with colour
https://pillar.r-lib.org/
Other
178 stars 37 forks source link

Please add col number to glimpse output #666

Open iamYannC opened 4 months ago

iamYannC commented 4 months ago

Hey. I kinda struggled with trying to create a PR and finding the underlying code, so might be easier to ask here:

Glimpse is great, but I wish there was an added index-number of columns when the output is printed! that's it, as simple as that :) example Somewhere here.. maybe instead of the dollar sign?

krlmlr commented 4 months ago

Thanks, Yann, I like this idea! Can we make this an option, defaulting to the current behavior?

Search for glimpse.data.frame() . We'll want to make sure we add indentation space for more than 10, 100, 1000, ... columns, perhaps using format() .