Thanks for the reply, much appreciated. Unfortunately, converting the tables to kable or kableExtra tables didn't solve the issue. For example, I converted one table now to kableExtra:
library(kableExtra)
DT %>%
kbl(digits=2,
format.args = list(big.mark = ',')) %>%
kable_styling(bootstrap_options = c("striped", "hover"),
fixed_thead = TRUE,
font_size = 10) %>%
scroll_box(width = "100%", height = "500px")
In the RStudio viewer, this produces a table with smaller font size and also the striped pattern:
I can only post one picture as a user, but it looks pretty much like the table on the kableExtra website
Pressing the knitr button in RStudio produces this rather unattractive table:
Any change I have made so far to the CSS style file had no impact on the look of the table. I also cannot find any information on how to change the look of a table. There is information on the distill website, but the examples there do not make any changes to the default design. Maybe it's simply not possible or I'm missing something obvious here.