hadley / emo

Easily insert emoji into R and RMarkdown
416 stars 53 forks source link

Extracting Multiple Emojis #52

Open soroosj opened 5 years ago

soroosj commented 5 years ago

Is there a function to extract more than one emoji at a time?

For example, ji('Germany') and ji ('Sweden') separately return the flags. However, ji(c('Germany','Sweden')) returns an error message "Error in find_emoji(keyword) : length(keyword) == 1 is not TRUE"

I see a function jis that looks potentially promising from the description but function does not seem to exist: Error in jis("Germany", "Sweden") : could not find function "jis"

matiasandina commented 2 years ago
purrr::map_chr(c("France", "Sweden"), emo::flag)
[1] "πŸ‡«πŸ‡·" "πŸ‡ΈπŸ‡ͺ"