cli
cli copied to clipboard
Tools for making beautiful & useful command line interfaces
I created a simple utility function that I thought may be helpful to consider as a possible addition to the cli package. I know there is already a related issue...
Most properties are dash-cased except these ones which are snake_cased: `vec_last`, `vec_sep`, `vec_trunc`, and `string_quote`. Should the latter be superseded in favour of dash-cased properties?
If `code_theme_default_rstudio()` is unavailable, `code_highlight()` falls back to `code_theme_default_term()`: I opted to use the default terminal theme instead of an RStudio theme, because the existing RStudio themes were probably designed...
If you try to use `code_highlight()` in RStudio when using a theme that is not included in `code_theme_list()`, you receive a warning message and the code is returned unhighlighted: ```r...
Cf. https://github.com/r-lib/cli/issues/384#issuecomment-1006487134
I wonder if there is a possibilty to use cli::cli_progress_bar within a parallel backend: ``` library(dplyr) library(foreach) library(cli) df
When using `.val` I get some strange printing, which doesn't happen if I use another inline markup like `.key`. Here's a reprex: ``` r library(cli) n_dist [4x1] or [4x5x1] #>...
``` r library(cli) cli_dl( c( "test_1" = "all good", "test_2" = "not #good" ) ) #> test_1: all good #> test_2: ``` Created on 2021-11-02 by the [reprex package](https://reprex.tidyverse.org) (v2.0.1)