Learn R Programming

emoji (version 15.0)

emoji_glue: Glue Interpolation for Emojis

Description

Combine the power of glue::glue and emoji().

Usage

emoji_glue(..., .envir = parent.frame())

Value

a glue::glue() string.

Arguments

...

[expressions]
Unnamed arguments are taken to be expression string(s) to format. Multiple inputs are concatenated together before formatting. Named arguments are taken to be temporary variables available for substitution.

.envir

[environment: parent.frame()]
Environment to evaluate each expression in. Expressions are evaluated from left to right. If .x is an environment, the expressions are evaluated in that environment and .envir is ignored. If NULL is passed, it is equivalent to emptyenv().

Details

emoji_glue() behaves in much the same way a lot of messaging apps work. Anything inside a pair of : will be interpolated into an emoji. You can think of emoji_glue() as being a shorthand for glue("I love {emoji('taco')}s").

Block ending with * will be collapsed.

Examples

Run this code
emoji_glue("I love :taco:s")

emoji_glue("one :heart:")
emoji_glue("many :heart*:")

Run the code above in your browser using DataLab