powered by
cat()
These helpers provide useful wrappers around cat(): most importantly they all set sep = "", and cat_line() automatically adds a newline.
sep = ""
cat_line()
cat_line(..., col = NULL, background_col = NULL, file = stdout())cat_bullet( ..., col = NULL, background_col = NULL, bullet = "bullet", bullet_col = NULL, file = stdout() )cat_boxx(..., file = stdout())cat_rule(..., file = stdout())cat_print(x, file = "")
cat_bullet( ..., col = NULL, background_col = NULL, bullet = "bullet", bullet_col = NULL, file = stdout() )
cat_boxx(..., file = stdout())
cat_rule(..., file = stdout())
cat_print(x, file = "")
For cat_line() and cat_bullet(), pasted together with collapse = "\n". For cat_rule() and cat_boxx() passed on to rule() and boxx() respectively.
cat_bullet()
collapse = "\n"
cat_rule()
cat_boxx()
rule()
boxx()
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") cat_bullet(letters[1:5]) cat_bullet(letters[1:5], bullet = "tick", bullet_col = "green") cat_rule()
Run the code above in your browser using DataLab