pillar icon indicating copy to clipboard operation
pillar copied to clipboard

new_pillar_title - format column titles conditionally (italics, red)

Open stemangiola opened this issue 2 years ago • 3 comments

I am trying to see how can I format columns titles, with multiple styles. I could not find many example of applications of the function new_pillar_title.

For example, if a tibble has 5 columns I want just one column title to be red and italic.

Thanks!

stemangiola avatar May 21 '22 00:05 stemangiola

Thanks. Would you like to share an example that displays what you would like to achieve?

krlmlr avatar May 22 '22 17:05 krlmlr

Hello @krlmlr,

please see the column groups

image

stemangiola avatar May 23 '22 01:05 stemangiola

Thanks. I believe you need to override ctl_new_pillar() to achieve this. Is the documentation helpful?

https://pillar.r-lib.org/articles/extending.html#body

krlmlr avatar Jun 30 '22 01:06 krlmlr

Happy to take feedback on the documentation.

krlmlr avatar Mar 12 '23 16:03 krlmlr