Skip to contents

Fetch one or more symbols by keyword

Usage

symKey(
  keyword,
  font.size = NULL,
  font.weight = NULL,
  font.color = NULL,
  if.error = TRUE
)

Arguments

keyword

symbol keyword to fetch

font.size

font size as integer

font.weight

font weight as integer

font.color

font color e.g. red, blue, cyan

if.error

show error response

Value

get group of symbols maptching a particular keyword

Complete cheatcheat for symbols

Common symbols include alpha, beta, copyright, registered, theta, sigma. See the complete list at https://github.com/oobianom/r2symbols.

Examples

symKey("arrow", font.size = 45)
#> <span class='r2rsymbols-sym sym-1' style='font-size:45px!important;'>&#8592;</span><span class='r2rsymbols-sym sym-2' style='font-size:45px!important;'>&#8593;</span><span class='r2rsymbols-sym sym-3' style='font-size:45px!important;'>&#8594;</span><span class='r2rsymbols-sym sym-4' style='font-size:45px!important;'>&#8595;</span><span class='r2rsymbols-sym sym-5' style='font-size:45px!important;'>&#8596;</span><span class='r2rsymbols-sym sym-6' style='font-size:45px!important;'>&#8597;</span><span class='r2rsymbols-sym sym-7' style='font-size:45px!important;'>&#8629;</span><span class='r2rsymbols-sym sym-11' style='font-size:45px!important;'>&#8598;</span><span class='r2rsymbols-sym sym-12' style='font-size:45px!important;'>&#8599;</span><span class='r2rsymbols-sym sym-13' style='font-size:45px!important;'>&#8600;</span><span class='r2rsymbols-sym sym-14' style='font-size:45px!important;'>&#8601;</span><span class='r2rsymbols-sym sym-17' style='font-size:45px!important;'>&#8604;</span><span class='r2rsymbols-sym sym-18' style='font-size:45px!important;'>&#8605;</span><span class='r2rsymbols-sym sym-19' style='font-size:45px!important;'>&#8606;</span><span class='r2rsymbols-sym sym-20' style='font-size:45px!important;'>&#8607;</span><span class='r2rsymbols-sym sym-21' style='font-size:45px!important;'>&#8608;</span><span class='r2rsymbols-sym sym-22' style='font-size:45px!important;'>&#8609;</span><span class='r2rsymbols-sym sym-23' style='font-size:45px!important;'>&#8610;</span><span class='r2rsymbols-sym sym-24' style='font-size:45px!important;'>&#8611;</span><span class='r2rsymbols-sym sym-25' style='font-size:45px!important;'>&#8612;</span><span class='r2rsymbols-sym sym-26' style='font-size:45px!important;'>&#8613;</span><span class='r2rsymbols-sym sym-27' style='font-size:45px!important;'>&#8614;</span><span class='r2rsymbols-sym sym-28' style='font-size:45px!important;'>&#8615;</span>
symKey("animal", font.color = "red")
#> Warning: No symbols match the keyword term that was entered
symKey("random454")
#> Warning: No symbols match the keyword term that was entered
symKey("show nothing")
#> Warning: No symbols match the keyword term that was entered