sym: Get a desired symbol

Description Usage Arguments Value Examples

Description

Get a symbol by name or number for use in Rmarkdown or Shiny apps

Usage

1
2
3
4
5
6
7
8
sym(
  ...,
  font.size = NULL,
  font.weight = NULL,
  font.color = NULL,
  if.error = FALSE,
  search.units.each = FALSE
)

Arguments

...

the symbols to display

font.size

font size as integer

font.weight

font weight as integer

font.color

font color e.g. red, blue, cyan

if.error

error response

search.units.each

whether to search single letter columns

Value

symbol hex for HTML displays

Examples

1
2
3
4
sym("trademark")
sym("alpha")
sym("arrow-right")
sym(144)

r2symbols documentation built on Sept. 13, 2020, 5:18 p.m.