Kable correction
Lets try and resolve the issue I reported here . This code attempts to rectify the formatting issue by closing off the code chunk appropriately. I’ve also loaded the tidyverse packages as was done in this stackoverflow post. library(kableExtra) library(tidyverse) library(knitr) dt <- mtcars[1:15, 1:6] kable(dt, format = "html", align = "c") %>% kable_styling(bootstrap_options = c("striped", "hover"), full_width = T, position = "left") %>% column_spec(1, width = "10em") %>% column_spec(2, width = "7em") %>% column_spec(3, width = "7em") %>% column_spec(4, width = "7em") %>% column_spec(5, width = "7em") %>% column_spec(6, width = "7em") %>% footnote(general = "Here is a general comments of the table.