printString | R Documentation |
Capture print()
output as a character
string.
printString(x, ..., max = getOption(x = "max.print", default = 100L))
x |
An object used to select a |
... |
Passthrough arguments to |
max |
|
Useful for returning informative messages inside a function.
character(1)
.
Updated 2023-01-30.
printString(c("hello", "world"))
printString(datasets::mtcars, max = 2L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.