Skip to contents

Other packages required for r2symbols: https://depends.rpkg.net/package/r2symbols

CRAN_Status_Badge CRAN_Status_Badge

With r2symbols, the idea is very simple. There are a lot of HTML codes available for many symbols (lots of them), so this package simply helps you incorporates the appropriate symbol into a Markdown document or Shiny app or dashboard, then 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.

Get started with how to use: Click here TUTORIAL0 or TUTORIAL 1 or TUTORIAL 2

  • Transform entire Rmarkdown & Quarto documents with symbols
  • Easily include symbols, arrows, smiley faces and so on in you Shiny applications

ezgif-3-efa9cce31d

Quick example in R

First, install and load…

install.packages("r2symbols")

library("r2symbols")

Added in the new version

One line code to transform entire document

# library call and setting at the top the document

library(r2symbols)
trans.r2symbols(font.color="green",font.weight = "bold",font.size = 30)

# within the text, add symbols

sample `alpha` text and `34` sample `u` text

Other features are still available

#load library
library(r2symbols)

#apply global settings
symbol.setting(font.size=40,font.weight ="normal",font.color = "purple")

#start including in texts
symbol("alpha") 

sym("naira","yen",font.size=30,font.weight ="bold",font.color = "red")

sym("heart")

symbol(23)

#include symbol by keyword
symKey("arrow")

#include symbol by category
symCat("smiley")

# you could use within the text without needing to declare trans.r2symbols()

sample `r symbol(23)` text and `r symbol('alpha')` sample `r sym('trademark')` text

Now published on CRAN and also available here in github

View information about this at https://cran.r-project.org/web/packages/r2symbols

A complete chart for the list of symbols and their corresponding identifiers

For a complete list of all the symbols and codes, please go to this link. Thank you. - https://r2symbols.obi.obianom.com/symbols