powered by
Prints a variable and captures the output, collapsing the value to a single string.
print_and_capture(x, ...)
A variable.
Arguments passed to print methods.
print
A string.
print, capture.output
capture.output
# NOT RUN { # This is useful for including data frames in warnings or errors message("This is the sleep dataset:\n", print_and_capture(sleep)) # }
Run the code above in your browser using DataLab