Print a variable and capture the output
Prints a variable and captures the output, collapsing the value to a single string.
print_and_capture(x, ...)
x |
A variable. |
... |
Arguments passed to |
A string.
# This is useful for including data frames in warnings or errors message("This is the sleep dataset:\n", print_and_capture(sleep))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.