knitr_setup: Setup script to be called at beginning of rmarkdown files

View source: R/knitr_setup.R

knitr_setupR Documentation

Setup script to be called at beginning of rmarkdown files

Description

Loads knitr, kableExtra, font awesome, sets an RNG seed, and sets several convenient knitr options:

  • Aliases for h (fig.height) and w (fig.width)

  • Turns on fig.align="center", message=FALSE, etc., almost always what one wants if writing a report (as opposed to an R instructional document)

  • Sets smaller figure margins

Usage

knitr_setup(fa = TRUE)

Arguments

fa

Load font awesome? (default: TRUE)


pbreheny/html documentation built on April 17, 2025, 11:36 p.m.