Learn R Programming

summarytools (version 0.9.2)

st_css: Include summarytools' css Into Active Document

Description

Generates the css needed by summarytools in Rmarkdown documents.

Usage

st_css(main = TRUE, global = FALSE, bootstrap = FALSE,
  style.tag = TRUE, ...)

Arguments

main

Logical. Include summarytools.css file. TRUE by default. Affects only summarytools objects.

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. FALSE by default.

bootstrap

Logical. Include bootstrap.min.css. FALSE by default.

style.tag

Logical. Includes the opening and closing <style> tags. TRUE by default.

Character. Path to additional css file(s) to include.

Details

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() ```