colorize: colorize function

View source: R/colorize.R

colorizeR Documentation

colorize function

Description

This function allows you to color text in a Rmarkdown document. It works with both PDF and HTML output. If used outside of a Rmarkdown document, it just outputs the same string.

Usage

colorize(x, color = "red")

Arguments

x

Text string to colorize.

color

Color string, defaults to "red".

Examples

colorize("text_red", color = "red")
colorize("text_white_hex", color = "#FFFFFF")

vrognas/vmisc documentation built on Oct. 27, 2023, 8:09 a.m.