These helpers provide useful wrappers around cat()
: most importantly
they all set sep = ""
, and cat_line()
automatically adds a newline.
Arguments
- ...
For
cat_line()
andcat_bullet()
, pasted together withcollapse = "\n"
. Forcat_rule()
andcat_boxx()
passed on torule()
andboxx()
respectively.- col, background_col, bullet_col
Colors for text, background, and bullets respectively.
- file
Output destination. Defaults to standard output.
- bullet
Name of bullet character. Indexes into symbol
- x
An object to print.
Examples
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()
#> ──────────────────────────────────────────────────────────────────────────