Add colours and font formatting to console text.

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")
#> TEXT TEST 
cat(font_red("TEXT TEST"), "\n")
#> TEXT TEST 
cat(font_green("TEXT TEST"), "\n")
#> TEXT TEST 
cat(font_blue("TEXT TEST"), "\n")
#> TEXT TEST 
cat(font_bold("TEXT TEST"), "\n")
#> TEXT TEST 
cat(font_italic("TEXT TEST"), "\n")
#> TEXT TEST 
cat(font_underline("TEXT TEST"), "\n")
#> TEXT TEST 
cat(font_red_bg(font_white("TEXT TEST")), "\n")
#> TEXT TEST