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. IfNULL
is passed, it is equivalent toemptyenv()
.
Value
a glue::glue()
string.
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
emoji_glue("I love :taco:s")
#> I love ๐ฎs
emoji_glue("one :heart:")
#> one โค๏ธ
emoji_glue("many :heart*:")
#> many ๐ฅฐ๐๐ป๐๐๐๐๐๐๐๐๐โฃ๏ธ๐โค๏ธโ๐ฅโค๏ธโ๐ฉนโค๏ธ๐ฉท๐งก๐๐๐๐ฉต๐๐ค๐ค๐ฉถ๐ค๐๐ซฐ๐ซถ๐ซ๐๐ฉโโค๏ธโ๐โ๐จ๐จโโค๏ธโ๐โ๐จ๐ฉโโค๏ธโ๐โ๐ฉ๐๐ฉโโค๏ธโ๐จ๐จโโค๏ธโ๐จ๐ฉโโค๏ธโ๐ฉ๐ ๐กโฅ๏ธ๐ฉบ