printStrToChar: Print str(x) of an object to a string / character vector
Description
Captures the output of str() as a character string.
Usage
printStrToChar(x, collapse = "\n")
Arguments
- x
[any]
Object to print
- collapse
[character(1)]
Used to collapse multiple lines.
NULL means no collapsing, vector is returned.
Default is “\n”.