powered by
This function applies a specified color to a given text string.
make_colored(x, color = NULL)
A colored text string or a text string with color codes removed.
The text string to be colored.
The color to be applied to the text. If NULL, the color codes will be removed.
make_colored("Hello, world!", "blue") make_colored("Hello, world!", NULL)
Run the code above in your browser using DataLab