Generates the css needed by summarytools in Rmarkdown documents.
st_css(main = TRUE, global = FALSE, bootstrap = FALSE,
style.tag = TRUE, ...)
Logical. Include summarytools.css file. TRUE
by
default. Affects only summarytools objects.
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. FALSE
by
default.
Logical. Include bootstrap.min.css. FALSE
by default.
Logical. Includes the opening and closing <style>
tags. TRUE
by default.
Character. Path to additional css file(s) to include.
Typically the function is called in the first R chunk of an
Rmarkdown document. For instance:
```{r, include=FALSE}
library(knitr)
opts_chunk$set(results = "asis")
library(summarytools)
st_options(plain.ascii = FALSE, style = "rmarkdown")
st_css()
```