emoji_replace_name: Replace emojis in a string with name

View source: R/rx.R

emoji_replace_nameR 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)

emoji documentation built on Oct. 30, 2024, 9:28 a.m.