From 3363df6ccdc81235a0a271006782cf5466ef6246 Mon Sep 17 00:00:00 2001 From: harrism1 Date: Fri, 19 Sep 2025 15:08:06 -0400 Subject: [PATCH] added `cli_vec()` info to vignette --- vignettes/semantic-cli.Rmd | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vignettes/semantic-cli.Rmd b/vignettes/semantic-cli.Rmd index b47d825d..9b9ff1d3 100644 --- a/vignettes/semantic-cli.Rmd +++ b/vignettes/semantic-cli.Rmd @@ -211,6 +211,17 @@ x <- Sys.time() cli_text("Hey {.var x} has class {.cls {class(x)}}") ``` +You can also use `cli_vec()`'s `style =` argument to customize inline separators to be passed into `cli_text()`: + +```{asciicast} +v <- cli_vec( + c("foo", "bar", "foobar", "more", "nonsensical", "words"), + style = list("vec-sep" = " & ", "vec-last" = " !!!! ") +) + +cli_text("My list: {v}.") +``` + ## Non-breaking spaces Use `\u00a0` to create a non-breaking space.