In rmarkdown, how to add icon in sentence?
For instance as below, how to add markdown icon between word 'Markdown' and 'is'
CodePudding user response:
There's a nice R package that makes it easy to download and add icons to RMarkdown documents, 
You can play around with the styling using the style argument to fontawesome() or with more complex styles with font_styles().
CodePudding user response:
You can use
```{r include=FALSE}
library(fontawesome)```
(The fontawesome package is available from CRAN.)
And then to insert an icon:
r fa(name = "markdown", fill = "green", height = "1em")
Example:
Markdown `r fa(name = "markdown", fill = "green", height = "1em")` is
a simple formatting syntax for authoring HTML, PDF,
and MS Word documents.
You can find the available icons at:



