## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----install-from-github, eval = FALSE----------------------------------------
# 
# # Install from CRAN
# 
# ## Using the base R
# # install.packages("Rmoji")
# 
# ## using the {pacman} package
# # pacman::p_load(Rmoji)
# 
# # Install from GitHub
# 
# # install.packages("devtools")
# 
#  devtools::install_github("3p1d3m/Rmoji")
# 
# # load the package
# 
# library(Rmoji)
# 

## ----r emoji-preview, echo = TRUE---------------------------------------------

data("emoji_dict", package = "Rmoji")

# Print first 10 emoji names
emoji_names <- head(names(emoji_dict), 10)


## ----emoji-insert-examples, eval=FALSE----------------------------------------
# 
# # Insert the smile emoji
# smile <- insert_emoji("smile")
# 
# # returns smile = 😄
# 
# # Insert the start emoji
# start <- insert_emoji("star")
# 
# # returns star = ⭐
# 

## ----get-bug-emoji, eval = FALSE----------------------------------------------
# 
# # Get the bug
# 
# bug_emoji <- git_emoji("bug")
# 
# # Returns:🐛
# 
# bug_emoji
# 

