cw {tlocoh} | R Documentation |
Takes a potentially long character object and adds carriage returns and blank spaces for better appearance when printing to the terminal window
cw(x, final.cr = TRUE, indent = 0, exdent = 0)
x |
A character object |
final.cr |
Whether to add a carriage return at the end. T/F. |
indent |
First line indent (number of blank spaces) |
exdent |
Subsequent line(s) indent (number of blank spaces) |
character object with embedded \n characters
This function can prevent long messages from extending beyond the width of the R-console. Works with any function that prints to the console (e.g., cat, print, stop)