You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First -- thanks for making such a great package. My unit uses it a lot for our report writing.
With the revisions to ADA Title II in the U.S., all our reports (actually, all online content generated by a public university) are now required to meet WCAG 2.1 AA requirements, which changes the way we deal with table headings.
Currently, for "simple" tables, the current heading structure works. But with the level of detail in most of our tables, it's preferable to be able to have both a heading row at the top, and a heading cell within every row, i.e.:
Would it be possible to add add_header_col, either as an arg to an existing function, or as a separate function that works with the %>% pipe? The 'scope' tag would be nice, but even without it, the option to change the first cell in each row from <td> to <th> would solve the problem for most cases.
Currently, we're running a post-processing Python/BeautifulSoup script that edits the HTML report after it's been knitted, but it would be amazing to have the <th> tags generated in the report itself.
Footnotes
I added "Time slot" to their example because it's impossible to leave the top left cell empty in an R data frame or matrix (plus it goes against the tidy data philosophy and such). ↩
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First -- thanks for making such a great package. My unit uses it a lot for our report writing.
With the revisions to ADA Title II in the U.S., all our reports (actually, all online content generated by a public university) are now required to meet WCAG 2.1 AA requirements, which changes the way we deal with table headings.
Currently, for "simple" tables, the current heading structure works. But with the level of detail in most of our tables, it's preferable to be able to have both a heading row at the top, and a heading cell within every row, i.e.:
(Example from W3)1
Would it be possible to add
add_header_col
, either as an arg to an existing function, or as a separate function that works with the%>%
pipe? The 'scope' tag would be nice, but even without it, the option to change the first cell in each row from<td>
to<th>
would solve the problem for most cases.Currently, we're running a post-processing Python/BeautifulSoup script that edits the HTML report after it's been knitted, but it would be amazing to have the
<th>
tags generated in the report itself.Footnotes
I added "Time slot" to their example because it's impossible to leave the top left cell empty in an R data frame or matrix (plus it goes against the tidy data philosophy and such). ↩
Beta Was this translation helpful? Give feedback.
All reactions