symbol: Various handy symbols to use in a command line UI

Description Usage Format Details Examples

Description

Various handy symbols to use in a command line UI

Usage

1
2
3

Format

A named list, see names(symbol) for all sign names.

Details

On Windows they have a fallback to less fancy symbols.

list_symbols() prints a table with all symbols to the screen.

Examples

1
2
3
4
5
cat(symbol$tick, " SUCCESS\n", symbol$cross, " FAILURE\n", sep = "")

## All symbols
cat(paste(format(names(symbol), width = 20),
  unlist(symbol)), sep = "\n")

Example output

v SUCCESS
x FAILURE
tick                 v
cross                x
star                 *
square               [ ]
square_small         [ ]
square_small_filled  [x]
circle               ( )
circle_filled        (*)
circle_dotted        ( )
circle_double        (o)
circle_circle        (o)
circle_cross         (x)
circle_pipe          (|)
circle_question_mark (?)
bullet               *
dot                  .
line                 -
double_line          =
ellipsis             ...
continue             ~
pointer              >
info                 i
warning              !
menu                 =
smiley               :)
mustache             /\/
heart                <3
arrow_up             ^
arrow_down           v
arrow_left           <
arrow_right          >
radio_on             (*)
radio_off            ( )
checkbox_on          [x]
checkbox_off         [ ]
checkbox_circle_on   (x)
checkbox_circle_off  ( )
fancy_question_mark  (?)
neq                  !=
geq                  >=
leq                  <=
times                x
upper_block_1        ^
upper_block_4        ^
lower_block_1        .
lower_block_2        _
lower_block_3        _
lower_block_4        =
lower_block_5        =
lower_block_6        *
lower_block_7        #
lower_block_8        #
full_block           #
sup_0                0
sup_1                1
sup_2                2
sup_3                3
sup_4                4
sup_5                5
sup_6                6
sup_7                7
sup_8                8
sup_9                9
sup_minus            -
sup_plus             +
play                 >
stop                 #
record               o

cli documentation built on April 5, 2021, 5:07 p.m.

Related to symbol in cli...