Quantcast
Channel: Active questions tagged kable - Stack Overflow
Viewing all articles
Browse latest Browse all 105

Multicolumn Footnote with kableExtra on Quarto document

$
0
0

I have a table generated with kableExtra with a footnote that spans over several columns. If I run it separately in R it displays properly. However, when run inside a Quarto document, it constraints the text of the footnote to the width of the 1st column.

Here is a reproducible example

library(kableExtra)dt <- mtcars[1:5, 1:4]# HTML tablekbl(dt, caption = "Demo Table") %>%  kable_styling(bootstrap_options = "striped",                full_width = F) %>%  add_header_above(c(" ", "Group 1" = 2, "Group 2[note]" = 2)) %>%  footnote(c("Let's make a very long table footnote"))

enter image description hereHas any one experienced this before, and if so knows how to fix it?


Viewing all articles
Browse latest Browse all 105

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>