emoji_replace_name {emoji}R Documentation

Replace emojis in a string with name

Description

Vectorised over string

Usage

emoji_replace_name(string)

Arguments

string

Input vector

Details

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

Value

A character vector

Examples

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

example

emoji_replace_name(example)

[Package emoji version 16.0.0 Index]