How to change the font color?

前端 未结 7 1772
轻奢々
轻奢々 2020-11-29 00:30

In RMarkdown is there a way to specify the font color?

There doesn\'t seem to be an option while browsing through the chunk options

7条回答
  •  一向
    一向 (楼主)
    2020-11-29 00:43

    An output-format agnostic solution would be to use the dedicated text_spec() function in the kableExtra package:

    Roses are `r kableExtra::text_spec("red", color = "red")`,
    
    violets are `r kableExtra::text_spec("blue", color = "blue")`
    

提交回复
热议问题