format: Replacement formatters

Description Usage Arguments Value Examples

Description

Construct a list of replacement formatting for a given markup format

Usage

1
2
3
4
5
6
7
8
format_console(color = NULL, background = NULL, bold = NULL,
  italic = NULL, underline = NULL)

format_html(color = NULL, background = NULL, bold = NULL, italic = NULL,
  underline = NULL)

format_latex(color = NULL, background = NULL, bold = NULL,
  italic = NULL, underline = NULL)

Arguments

color

A vector of text colors

background

A vector of background colors

bold

A logical vector

italic

A logical vector

underline

A logical vector

Value

A length-2 list

Examples

1
2
3
4
# html
format_html(color = c("black", "red", "green"))
# latex
format_latex(background = c("black", "red", "green"))

leeper/textcolor documentation built on May 21, 2019, 1:39 a.m.