emoji: Return unicode

Description Usage Arguments Value Examples

View source: R/remoji.R

Description

Returns the unicode character for an emoji with given alias. These cheatsheet at http://emoji-cheat-sheet.com will probably help, or use find_emoji to find an emoji. The database comes from https://github.com/github/gemoji

Usage

1
emoji(alias, pad = FALSE, must_work = FALSE)

Arguments

alias

Character vector of emoji aliases.

pad

Logical indicating if the returned string should be padded with a single space? This seems to help printing.

must_work

Logical indicating that a look failure should cause an error.

Value

A character vector the same length as alias

Examples

1
2
3
emoji("+1")
message(emoji("+1"))
message(emoji(c("fire", "computer"), TRUE)[c(1, 1, 1, 2, 1, 1, 1)])

richfitz/remoji documentation built on May 27, 2019, 8:29 a.m.