The df_print: paged
option in Rmarkdown is great for big tables. For tables with fewer columns, however, it would be nice to have an option for something like width: auto
for basic HTML tables. I found the CSS file for pagedtable on Github and played around with it (see example below). I couldn't get the box and footer width right though. Any ideas?
---
output:
html_document:
df_print: paged
---
<style type='text/css'>
.pagedtable table {
width: auto;
}
</style>
```{r}
iris[,c(1,2,5)]
```