--- title: "Using Emojis Revisited" author: "Peter Baumgartner" date: '2021-07-30' slug: using-emojis-revisited categories: - Rmarkdown - package tags: - emo - emoji - unicode lastmod: null summary: How to insert into an R Markdown document a special emoji without knowing the name or keyword? I encountered this problem in conjunction with some pull requests for the OpenIntro textbook Introduction to Modern Statistics. Already I reported on in a [previous blog entry](https://notes.peter-baumgartner.net/2021/04/19/using-emojis-in-r-and-rmarkdown/), but for this problem, I had to revisit this issue. for [interactive tutorials](https://github.com/OpenIntroStat/ims-tutorials) for my experience with my first encounter with the [emo package](https://github.com/hadley/emo). commentable: yes draft: no side_toc: no image: placement: 2 caption: Screenshot of the macOS window for symbols and emoticons alt_text: Screenshot of the macOS window for symbols and emoticons focal_point: Center preview_only: no ---
I already reported on my learnings on the emo package in conjunction with some pull requests for interactive tutorials for the OpenIntro textbook Introduction to Modern Statistics. In the meanwhile, the book is — after some reorganization of its chapters — finished and published. I ordered the print version of the book via Amazon.
On August 13th, I started working through the tutorials and reading the new book and prepared several pull requests. There I encountered the problem of finding a special emoji without knowing the name or keyword. Meanwhile, I solved the difficulty of finding the emoji name for 🔟. There are even several solutions.
emo::ji_name
, you will get a list of 4239 names as character strings and their corresponding value as emoji. But you have to inspect the list manually, which really is not practical. (At least I did not find a better solution programmatically.)emojis_df <- emo::jis
and to inspect it via the RStudio command View(emojis_df)
. There you can put the emoji symbol into the search field to get the required information.Screenshot of macOS window showing keycap-10 emoji
🔟
Taste mit der Zahl 10
Unicode: U+1F51F, UTF-8: F0 9F 94 9F
All in all, just options 1 and 3 are feasible in a practical manner. Either to call the EmojiTerra.com website or to use View(emo::jis)
inside RStudio.