powered by
colourise(text, fg = "black", bg = NULL)
Colourization of the output can be turned-off by setting option 'testthat.use_colours' to FALSE.
print(colourise("Red", "red")) cat(colourise("Red", "red"), "\n") cat(colourise("White on red", "white", "red"), "\n")
Run the code above in your browser using DataLab