I am trying to make a string in R containing both standard letters and a symbol beside. I notice that R seems to print strictly UTF-8 symbols only. So non-standard letters and even emojis. However when it comes to flags it will only print the letters of the flag. Preferably only a label on a graph such as geom_text.
# Name
"<Jamaican Flag> Usain Bolt"
# Emoji
cat(paste("\U0001f600", "Usain Bolt"))
# Flag
cat(paste("\U1F1EF\U1F1F2", "Usain Bolt"))
What I want ideally is something like this which I produced on Facebook messenger:
Any ideas? Thanks.