knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
You can import getable
's default Rmd template with in RStudio by selecting: File > New File > R Markdown > From Template > HTML Tables with Dynamic Data {GETable}
This will generate a folder.
You can then open the Rmd source file and edit the document. Note that the relative path of the dependency files (*.html
, *.js
, and *.css
) to the source Rmd must stay constant for the package to work.
See demo for a working example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.