bs4_utilitr: UtilitR bs4 format

View source: R/build_website.R

bs4_utilitrR Documentation

UtilitR bs4 format

Description

An output format customizing bs4 format

Usage

bs4_utilitr(
  extra_dependencies = list(),
  includes = rmarkdown::includes(in_header =
    pkg_resource("rmarkdown/resources/html/header_polyfill.html"), before_body =
    pkg_resource("rmarkdown/resources/html/print_button.html"), ),
  theme = bookdown::bs4_book_theme,
  pandoc_args = c("--lua-filter", pkg_resource("rmarkdown/resources/scripts/nbsp.lua")),
  primary = "#3c5c5c",
  secondary = "#cf581b",
  new_session = TRUE,
  ...
)

Arguments

extra_dependencies

Additional HTML dependencies. When left empty, a few default formatting properties are applied

includes

Specify additional content to be included within an output document.

theme

Bookdown theme. Default uses bookdown::bs4_book_theme

pandoc_args

Additional pandoc arguments passed to rmarkdown::render().

primary, secondary

Colors for the theme

new_session

Logical indicating whether each Rmd should be compiled in a brand-new directory

...

Additional arguments passed to bookdown::bs4_book

Value

An R Markdown output format object to be passed to rmarkdown::render().


InseeFrLab/utilitr-template documentation built on Oct. 21, 2022, 11:42 p.m.