These helpers provide useful wrappers around cat()
: most importantly
they all set sep = ""
, and cat_line()
automatically adds a newline.
For cat_line()
and cat_bullet()
, pasted together with
collapse = "\n"
. For cat_rule()
and cat_boxx()
passed on to
rule()
and boxx()
respectively.
Colors for text, background, and bullets respectively.
Output destination. Defaults to standard output.
Name of bullet character. Indexes into symbol
An object to print.
cat_line("This is ", "a ", "line of text.", col = "red")
#> This is a line of text.
cat_bullet(letters[1:5])
#> • a
#> • b
#> • c
#> • d
#> • e
cat_bullet(letters[1:5], bullet = "tick", bullet_col = "green")
#> ✔ a
#> ✔ b
#> ✔ c
#> ✔ d
#> ✔ e
cat_rule()
#> ────────────────────────────────────────────────────────────────────────────────