multicolor your RMarkdown HTML documents!


with type = "rmd".


library(multicolor)


Color Chunk Output

[1] “Brutus is just as smart as Caesar, people totally like Brutus just as much as they like Caesar, and when did it become okay for one person to be the boss of everybody because that’s not what Rome is about! We should totally just STAB CAESAR!


Header Output



Deets

In multi_color, setting type equal to "rmd" uses the fansi package to produce HTML.



To display the colored text, the knitr option that should be applied to the chunk or document is the results = "asis" option.

You can do this document-wide with:

The chunk containing this option can be hidden with the echo = FALSE option. More on knitr options.

Another global option that should be set is: