r2symbols is a part of the R2 R package family - https://r2symbols.obi.obianom.com
In preparing Rmarkdown documents and Shiny applications, symbols or special characters or greek letters or currencies e.t.c may be sort after to make the final output look more appealing or professional. R2symbols is an R package that makes this possible. Prior to the development of this package, many authors have preferrably used LaTeX codes to accomplish this. The downside to doing this are as follows -
With r2symbols, the idea is very simple. There are already a lot of HTML codes available for many of these symbols, so this package simply incorporates the appropriate symbol into the document and in the final ouput, mathjax script is not needed for it to show up properly. Additionally, the code you will be writing is all R code and no LaTeX is needed.
Here are some examples on how to use the r2symbols package
library(r2symbols)
symbol.setting(font.size=50,font.weight ="normal",font.color = "blue")
symbol("copyright","heart","chessq","ox","deer","beer")
# change settings anytime
symbol.setting(font.size=30,font.weight ="bold",font.color = "red")
sym("naira","yen")
For example, you can make a writing using symbol number
likesymbol(243)
for φg/mL or with the name like
symbol("mu")
for μg/mL
OR, I could make a global settings first -
Then…
For example, you can make a writing using symbol number like φg/mL or with the name like μg/mL
You can do something like symbol.units("ug/mL")
->
μg/mL
for ug/mL