Description Usage Arguments Value See Also Examples
Prints a variable and captures the output, collapsing the value to a single string.
1 | print_and_capture(x, ...)
|
x |
A variable. |
... |
Arguments passed to |
A string.
1 2 | # This is useful for including data frames in warnings or errors
message("This is the sleep dataset:\n", print_and_capture(sleep))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.