st_css | R Documentation |
Generate the css needed by summarytools in html documents.
st_css(main = TRUE, global = FALSE, bootstrap = FALSE, style.tag = TRUE, ...)
main |
Logical. Include summarytools.css file. |
global |
Logical. Include the additional summarytools-global.css
file, which affects all content in the document. Provides control over
objects that were not html-rendered; in particular, table widths
and vertical alignment are modified to improve layout. |
bootstrap |
Logical. Include bootstrap.min.css. |
style.tag |
Logical. Include the opening and closing |
... |
Character. Path to additional css file(s) to include. |
Typically the function is called right after the initial setup chunk
of an R markdown document, in a chunk having options
echo=FALSE
and results="asis"
.
The css file(s) content silently as a character vector, and
prints (using cat()
) the content.
Dominic Comtois, dominic.comtois@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.