emoji_glue {emoji} | R Documentation |
Glue Interpolation for Emojis
Description
Combine the power of glue::glue
and emoji()
.
Usage
emoji_glue(..., .envir = parent.frame())
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.
For glue_data() , elements in ... override the values in .x .
|
.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.
Value
a glue::glue()
string.
Examples
emoji_glue("I love :taco:s")
emoji_glue("one :heart:")
emoji_glue("many :heart*:")
[Package
emoji version 16.0.0
Index]