Save knitr::kable() output to html file R
问题 I have a knitr_kable output that I want to save as an HTML document from R. I need this to run automatically from my R script with no human involvement. For example: dt <- mtcars[1:5, 1:6] kable(dt, "html") %>% kable_styling(bootstrap_options = c("striped", "hover")) This has html output but the class is knitr_kable so I can't write it to a table or html file because it cannot be coerced to a dataframe. class(kable(dt, "html")) [1] "knitr_kable" Does anyone have a method for saving one of