The behavior of flag is not able to pattern match properly China
> emo::flag("Hong Kong SAR China")
ðŸ‡ðŸ‡°
> purrr:::map(c("China","Hong Kong SAR China"), emo::flag)
Error in .f(.x[[i]], ...) :
Query not specific enough, found 3 flags: 'China', 'Hong Kong SAR China', 'Macau SAR China'
> purrr:::map(c("China"), emo::flag)
Error in .f(.x[[i]], ...) :
Query not specific enough, found 3 flags: 'China', 'Hong Kong SAR China', 'Macau SAR China'
> purrr:::map(c("china"), emo::flag)
Error in .f(.x[[i]], ...) : Cannot find flag 'china'
The behavior of emo::ji is different and produces "expected" results. I get that they are internally implemented differently but if flag is meant as a shorthand, it might be better to not have it fail like this.
The behavior of
flag
is not able to pattern match properly ChinaThe behavior of
emo::ji
is different and produces "expected" results. I get that they are internally implemented differently but ifflag
is meant as a shorthand, it might be better to not have it fail like this.I am using, maybe this got fixed in next versions and I didn't check.