Nothing
Code
cat_line("This is ", "a ", "line of text.")
Output
This is a line of text.
Code
cat_line("This is ", "a ", "line of text.", col = "red")
Output
[31mThis is a line of text.[39m
Code
cat_line("This is ", "a ", "line of text.", background_col = "green")
Output
[42mThis is a line of text.[49m
Code
cat_bullet(letters[1:5])
Output
* a
* b
* c
* d
* e
Code
cat_bullet(letters[1:5])
Output
• a
• b
• c
• d
• e
Code
cat_boxx("foo")
Output
+---------+
| |
| foo |
| |
+---------+
Code
cat_boxx("foo")
Output
┌─────────┐
│ │
│ foo │
│ │
└─────────┘
Code
local({
withr::local_options(cli.width = 20)
cat_rule("title")
})
Output
-- title -----------
Code
local({
withr::local_options(cli.width = 20)
cat_rule("title")
})
Output
── title ───────────
Code
cat_print(boxx(""))
Output
+------+
| |
| |
| |
+------+
Code
local({
tmp <- tempfile()
on.exit(unlink(tmp), add = TRUE)
expect_silent(cat_print(boxx(""), file = tmp))
cat(readLines(tmp, warn = FALSE), sep = "\n")
})
Output
+------+
| |
| |
| |
+------+
Code
cat_print(boxx(""))
Output
┌──────┐
│ │
│ │
│ │
└──────┘
Code
local({
tmp <- tempfile()
on.exit(unlink(tmp), add = TRUE)
expect_silent(cat_print(boxx(""), file = tmp))
cat(readLines(tmp, warn = FALSE), sep = "\n")
})
Output
┌──────┐
│ │
│ │
│ │
└──────┘
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.