r_colourise | R Documentation |
If R is not currently running in a system that supports terminal colours the text will be returned unchanged.
r_colourise(text, color = "black")
text |
character vector |
color |
foreground colour, defaults to white |
Allowed colours are: black, blue, brown, cyan, dark gray, green, light blue, light cyan, light gray, light green, light purple, light red, purple, red, white, yellow
# copy paste the code to the terminal
print(r_colourise("text", "red"))
r_colourise("text", "red")
c("this", "text","is colored")|>r_colourise(c("red","green","yellow"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.