## ----cool, results='asis'------------------------------------------------
library(knitr)
kable(mtcars, 'html', table.attr='id="mtcars_table"')
## ------------------------------------------------------------------------
options(markdown.HTML.header = system.file('misc', 'datatables.html', package = 'knitr'))
## ----boring, results='asis'----------------------------------------------
kable(head(mtcars), 'html')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.