Skip to contents

Vectorised over string

Usage

emoji_replace_name(string)

Arguments

string

Input vector

Value

A character vector

Details

Each emoji is replaced with human readable string in the form :name_of_emoji:.

Examples

example <- c(
  paste0("This is an emoji; ", emoji("person_facepalming")),
  paste0("You can write slides in ", emoji("key"), emoji("musical_note"))
)

example
#> [1] "This is an emoji; 🤦"         "You can write slides in 🔑🎵"

emoji_replace_name(example)
#> [1] "This is an emoji; :person_facepalming:"     
#> [2] "You can write slides in :key::musical_note:"