Vectorised over string
Examples
example <- c(
paste0("This is an emoji; ", emoji("person_facepalming")),
paste0("You can write slides in ", emoji("key"), emoji("musical_note"))
)
example
#> [1] "This is an emoji; 🤦" "You can write slides in 🔑🎵"
emoji_replace_name(example)
#> [1] "This is an emoji; :person_facepalming:"
#> [2] "You can write slides in :key::musical_note:"