Helpers for Developing Command Line Interfaces
It integrates well with crayon
for coloring the boxes or their content, It can draw rules and boxes to make headers or footers in console output, and tree structures. It includes a set of Unicode characters, with fallbacks on systems that do not support them.
devtools::install_github("r-lib/cli")
library(cli)
Inspired by (and mostly copied from) the figures JavaScript project.
#> ✔ tick ☒ checkbox_on
#> ✖ cross ☐ checkbox_off
#> ★ star ⓧ checkbox_circle_on
#> ▇ square Ⓘ checkbox_circle_off
#> ◻ square_small ❓ fancy_question_mark
#> ◼ square_small_filled ≠ neq
#> ◯ circle ≥ geq
#> ◉ circle_filled ≤ leq
#> ◌ circle_dotted × times
#> ◎ circle_double ▔ upper_block_1
#> ⓞ circle_circle ▀ upper_block_4
#> ⓧ circle_cross ▁ lower_block_1
#> Ⓘ circle_pipe ▂ lower_block_2
#> ?⃝ circle_question_mark ▃ lower_block_3
#> ● bullet ▄ lower_block_4
#> ․ dot ▅ lower_block_5
#> ─ line ▆ lower_block_6
#> ═ double_line ▇ lower_block_7
#> … ellipsis █ lower_block_8
#> … continue █ full_block
#> ❯ pointer ⁰ sup_0
#> ℹ info ¹ sup_1
#> ⚠ warning ² sup_2
#> ☰ menu ³ sup_3
#> ☺ smiley ⁴ sup_4
#> ෴ mustache ⁵ sup_5
#> ♥ heart ⁶ sup_6
#> ↑ arrow_up ⁷ sup_7
#> ↓ arrow_down ⁸ sup_8
#> ← arrow_left ⁹ sup_9
#> → arrow_right ⁻ sup_minus
#> ◉ radio_on ⁺ sup_plus
#> ◯ radio_off
See list_spinners()
and get_spinner()
. From the awesome cli-spinners project.