What problem does it solve?
R developers often need to present clear, nicely formatted command-line outputs when building R packages or scripts, but R's default messaging lacks rich formatting and structure.
Core Features & Use Cases
- Inline markup with class-based formatting (e.g., {.code ...}, {.pkg ...}, {.val ...}) for code, paths, and values.
- Formatted errors, warnings, and information via cli_abort(), cli_warn(), cli_inform() for consistent UX.
- Progress indicators and headings (cli_progress_bar, cli_h1, cli_ul) to communicate status.
- Theming and styling via cli_div and built-in themes to ensure accessible, branded CLI output.
- Real-world use cases: building robust CRAN-like CLIs, debugging workflows, and user-facing messages in packages.
Quick Start
Install and load the cli package, then start formatting outputs in your R scripts with inline markup and CLI helpers.