add_custom_style: Include Custom HTML Style Elements Into Active Document

View source: R/add_custom_style.R

add_custom_styleR Documentation

Include Custom HTML Style Elements Into Active Document

Description

Generate inline style components to modify the standard flexdashboard css. Original functionality updated based on example from st_css() from https://github.com/dcomtois/summarytools

Usage

add_custom_style(main = TRUE, ...)

Arguments

main

Logical. Include summarytools.css file. TRUE by default. This will affects only summarytools objects, for one exception: two properties of the img tag are redefined to have background-color: transparent and border: 0.

...

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

Details

The style formatting is intended to be used with bootsrap's readable theme.

The function may be called in an R markdown document code chunk having options echo=FALSE and results="asis".

Value

The style content and css file(s) returned silently as a character vector, and printed (using cat()).


johnaclouse/curios documentation built on June 14, 2022, 6:45 a.m.