Skip to contents

thanks to https://bookdown.org/yihui/rmarkdown-cookbook/font-color.html#using-an-r-function-to-write-raw-html-or-latex-code

Usage

colorize(x, color)

Arguments

x

the text to be formatted

color

the color to be applied

Value

string with the formatted p value

Examples

colorize("red text", "red")
#> [1] "red text"