| tags: [ Fun ] categories: [Experiment ]

Using emojis in this setup

To get access to emojis set the following flag in the config.toml file:

enableEmoji = true

Note: for emojis to be interpreted correctly your file needs to be an .Rmarkdown file, .Rmd won’t work.

This should mean that emojis work: πŸ˜„ 🀘 πŸ’€

Here is a cheatsheet of emoji codes: https://www.webpagefx.com/tools/emoji-cheat-sheet/

An R package for emojis

The package emo(ji) allows the insertion of emoji using R.

# install.packages("devtools")
devtools::install_github("hadley/emo")

Load the package:

require(emo)

Then emoji can then be inserted inline `r emo::ji("smile")` πŸ˜„ or `r emo::ji("metal")` 🀘

…or:

emo::ji("poop")
## πŸ’©