font_colours: Console Font Colours

font_coloursR Documentation

Console Font Colours

Description

Add colours and font formatting to console text.

Usage

font_black(..., collapse = " ")

font_blue(..., collapse = " ")

font_green(..., collapse = " ")

font_magenta(..., collapse = " ")

font_red(..., collapse = " ")

font_red_bg(..., collapse = " ")

font_white(..., collapse = " ")

font_yellow(..., collapse = " ")

font_subtle(..., collapse = " ")

font_silver(..., collapse = " ")

font_grey(..., collapse = " ")

font_bold(..., collapse = " ")

font_italic(..., collapse = " ")

font_underline(..., collapse = " ")

font_stripstyle(...)

Arguments

...

character (vector)

collapse

character to separate the text elements. Use collapse = NULL to not collapse the input.

Details

Most colours are adapted based on the RStudio theme (dark/light).

Examples

cat(font_black("TEXT TEST"), "\n")
cat(font_red("TEXT TEST"), "\n")
cat(font_green("TEXT TEST"), "\n")
cat(font_blue("TEXT TEST"), "\n")
cat(font_bold("TEXT TEST"), "\n")
cat(font_italic("TEXT TEST"), "\n")
cat(font_underline("TEXT TEST"), "\n")
cat(font_red_bg(font_white("TEXT TEST")), "\n")

certe-medical-epidemiology/certestyle documentation built on July 12, 2024, 2:45 p.m.