Closed katossky closed 1 month ago
Thanks for the note.
I agree this is kind of confusing. I'll think about it, but my intuition is that finding a different solution will increase internal code complexity by a lot. In basically all format, we need to insert new rows of data in the actual table for groups, so we'd have to have special indexing everywhere to keep track of this, and bump up the indices accordingly. It's just much easier to tell LaTeX or JavaScript: "color the 5th row red", than "color the 5th row red unless there are groups, in which case..."
At the moment, I feel that we can probably live with this quirk, perhaps with improved documentation.
You're most probably right, since I don't know anything about your internal gears ! Just sharing my user experience.
First thanks for tinytable !
style_tt(i = iris$Species == 'verticolor', ...)
if the table has been grouped).I do not have a good alternative, but maybe sth along
style_tt_groups()
orstyle_tt(scope='groups')
.