Use utf8_text_*()
functions to format text (using
Utf8)
library(utf8ify)
text <- "\nHello World"
cat(
text,
utf8_text_bold(text),
utf8_text_bold2(text),
utf8_text_italic(text),
utf8_text_bolditalic(text),
utf8_text_cursive(text),
utf8_text_gothic(text),
utf8_text_circle(text)
)
##
## Hello World
## ๐๐ฒ๐น๐น๐ผ ๐ช๐ผ๐ฟ๐น๐ฑ
## ๐๐๐ฅ๐ฅ๐จ ๐๐จ๐ซ๐ฅ๐
## ๐๐ฆ๐ญ๐ญ๐ฐ ๐๐ฐ๐ณ๐ญ๐ฅ
## ๐ฏ๐๐๐๐ ๐พ๐๐๐๐
## ๐๐ฎ๐ต๐ต๐ธ ๐ฆ๐ธ๐ป๐ต๐ญ
## ๐ณ๐๐๐๐ ๐๐๐๐๐
## โฝโโโโ โโโกโโ
Not all characters can be formatted. In this example the letter
รถ
is not formatted bold (as there is no corresponding Utf8
bold character)
## [1] "๐๐ฒ๐๐๐ฒ ๐ถ๐๐ ๐ฒ๐ถ๐ป ๐๐ฐ๐ตรถ๐ป๐ฒ๐ฟ ๐ง๐ฎ๐ด"
{utf8ify} comes with a collection of Utf8 symbols & emojis. They are structured as a list.
## arrow_right arrow_left beer bulb check clapping
## "โก" "โฌ
" "๐บ" "๐ก" "โ๏ธ" "๐"
## coffee cross email eyes fire point_right
## "โ" "โ" "๐ง" "๐" "๐ฅ" "๐"
## point_left happy heart joy key money
## "๐" "๐" "โค๏ธ" "๐" "๐" "๐ฐ"
## onehundret party poo question surprise sweat
## "๐ฏ" "๐" "๐ฉ" "โ" "๐ฎ" "๐
"
## rocket speech star sunglasses target thanks
## "๐" "๐ฌ" "โญ" "๐" "๐ฏ" "๐"
## think thumbs_up thumbs_down ups wink zipper
## "๐ค" "๐" "๐" "๐คญ" "๐" "๐ค"
## bee bull cat cow dog dolphin fish horse llama monkey
## "๐" "๐" "๐" "๐" "๐" "๐ฌ" "๐" "๐" "๐ฆ" "๐"
## pig rat rabbit snake tiger
## "๐" "๐" "๐" "๐" "๐
"
## present cake party_popper balloon pumpkin xmas_tree
## "๐" "๐" "๐" "๐" "๐" "๐"
## santa fireworks graduation
## "๐
" "๐" "๐"
## clock_01 clock_02 clock_03 clock_04 clock_05 clock_06 clock_07 clock_08
## "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐"
## clock_09 clock_10 clock_11 clock_12
## "๐" "๐" "๐" "๐"
## apple cake cherry cookie fries hamburger lemon pizza
## "๐" "๐ฐ" "๐" "๐ช" "๐" "๐" "๐" "๐"
## plate popcorn
## "๐ฝ" "๐ฟ"
## beer beer2 bottle coffee cocktail wine
## "๐บ" "๐ป" "๐พ" "โ" "๐ธ" "๐ท"
## arrow_right circle check check_box diamond
## "โก" "โ" "โ๏ธ" "โ
" "โ"
## diamond_blue diamond_orange dot_black dot_blue dot_green
## "๐น" "๐ธ" "โซ" "๐ต" "๐ข"
## dot_orange dot_red dot_small
## "๐ " "๐ด" "โ"
## calendar chart_up chart_down desktop folder laptop paperclip
## "๐" "๐" "๐" "๐ฅ" "๐" "๐ป" "๐"
## page pen printer pushpin pushpin2 scissors trash
## "๐" "๐" "๐จ" "๐" "๐" "โ" "๐"
Use utf8_block()
to show a complete Utf8 block:
## [1] "๐" "๐" "๐" "๐" "๐" "๐
" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐"
## [16] "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐" "๐"
## [31] "๐" "๐" "๐ " "๐ก" "๐ข" "๐ฃ" "๐ค" "๐ฅ" "๐ฆ" "๐ง" "๐จ" "๐ฉ" "๐ช" "๐ซ" "๐ฌ"
## [46] "๐ญ" "๐ฎ" "๐ฏ" "๐ฐ" "๐ฑ" "๐ฒ" "๐ณ" "๐ด" "๐ต" "๐ถ" "๐ท" "๐ธ" "๐น" "๐บ" "๐ป"
## [61] "๐ผ" "๐ฝ" "๐พ" "๐ฟ" "๐" "๐" "๐" "๐" "๐" "๐
" "๐" "๐" "๐" "๐" "๐"
## [76] "๐" "๐" "๐" "๐" "๐"
## [1] "โ" "โ" "โ" "โ" "โ" "โ
" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ"
## [16] "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ"
## [31] "โ" "โ" "โ " "โก" "โข" "โฃ" "โค" "โฅ" "โฆ" "โง" "โจ" "โฉ" "โช" "โซ" "โฌ"
## [46] "โญ" "โฎ" "โฏ" "โฐ" "โฑ" "โฒ" "โณ" "โด" "โต" "โถ" "โท" "โธ" "โน" "โบ" "โป"
## [61] "โผ" "โฝ" "โพ" "โฟ" "โ" "โ" "โ" "โ" "โ" "โ
" "โ" "โ" "โ" "โ" "โ"
## [76] "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ"
## [91] "โ" "โ" "โ" "โ" "โ" "โ" "โ " "โก" "โข" "โฃ" "โค" "โฅ" "โฆ" "โง" "โจ"
## [106] "โฉ" "โช" "โซ" "โฌ" "โญ" "โฎ" "โฏ" "โฐ" "โฑ" "โฒ" "โณ" "โด" "โต" "โถ" "โท"
## [121] "โธ" "โน" "โบ" "โป" "โผ" "โฝ" "โพ" "โฟ" "โ" "โ" "โ" "โ" "โ" "โ
" "โ"
## [136] "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ"
## [151] "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ " "โก" "โข" "โฃ" "โค"
## [166] "โฅ" "โฆ" "โง" "โจ" "โฉ" "โช" "โซ" "โฌ" "โญ" "โฎ" "โฏ" "โฐ" "โฑ" "โฒ" "โณ"
## [181] "โด" "โต" "โถ" "โท" "โธ" "โน" "โบ" "โป" "โผ" "โฝ" "โพ" "โฟ" "โ" "โ" "โ"
## [196] "โ" "โ" "โ
" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ"
## [211] "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ" "โ "
## [226] "โก" "โข" "โฃ" "โค" "โฅ" "โฆ" "โง" "โจ" "โฉ" "โช" "โซ" "โฌ" "โญ" "โฎ" "โฏ"
## [241] "โฐ" "โฑ" "โฒ" "โณ" "โด" "โต" "โถ" "โท" "โธ" "โน" "โบ" "โป" "โผ" "โฝ" "โพ"
## [256] "โฟ"
## [1] "แ " "แก" "แข" "แฃ" "แค" "แฅ" "แฆ" "แง" "แจ" "แฉ" "แช" "แซ" "แฌ" "แญ" "แฎ" "แฏ" "แฐ" "แฑ" "แฒ"
## [20] "แณ" "แด" "แต" "แถ" "แท" "แธ" "แน" "แบ" "แป" "แผ" "แฝ" "แพ" "แฟ" "แ" "แ" "แ" "แ" "แ" "แ
"
## [39] "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ"
## [58] "แ" "แ" "แ" "แ" "แ" "แ" "แ" "แ " "แก" "แข" "แฃ" "แค" "แฅ" "แฆ" "แง" "แจ" "แฉ" "แช" "แซ"
## [77] "แฌ" "แญ" "แฎ" "แฏ" "แฐ"