I'm currently using the following kable_styling()
from kableExtra:
kable_styling(bootstrap_options = c("striped", "hover", "condensed"))
I can set the table style to kable in my R Markdown document in the YAML metadata as follows:
output:
html_document:
df_print: kable
But this just outputs all my tables in plain HTML. I'm not sure how to apply my kable_styling()
to all chunks. At the moment I have to write the following out in full in every chunk:
df %>%
kable() %>%
kable_styling(bootstrap_options = c("striped", "hover", "condensed"))
Question
How can I apply my kable_styling()
to all code chunks without having to write it out in all code chunks?