Skip to contents

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().

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 ๐Ÿฅฐ๐Ÿ˜˜๐Ÿ˜ป๐Ÿ’Œ๐Ÿ’˜๐Ÿ’๐Ÿ’–๐Ÿ’—๐Ÿ’“๐Ÿ’ž๐Ÿ’•๐Ÿ’Ÿโฃ๏ธ๐Ÿ’”โค๏ธโ€๐Ÿ”ฅโค๏ธโ€๐Ÿฉนโค๏ธ๐Ÿฉท๐Ÿงก๐Ÿ’›๐Ÿ’š๐Ÿ’™๐Ÿฉต๐Ÿ’œ๐ŸคŽ๐Ÿ–ค๐Ÿฉถ๐Ÿค๐Ÿ’‹๐Ÿซฐ๐Ÿซถ๐Ÿซ€๐Ÿ’๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘ฉ๐Ÿ’‘๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘จ๐Ÿ‘จโ€โค๏ธโ€๐Ÿ‘จ๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘ฉ๐Ÿ ๐Ÿกโ™ฅ๏ธ๐Ÿฉบ