powered by
Formats a text block for printing.
str_indent(initial, str, width = 0.9 * getOption("width"), exdent = 2L, ...)
(character()).
character()
(character(1)) Initial string, passed to strwrap().
character(1)
strwrap()
(character()) Vector of strings.
(integer(1)) Width of the output.
integer(1)
(integer(1)) Indentation of subsequent lines in paragraph.
(any) Additional parameters passed to str_collapse().
any
str_collapse()
cat(str_indent("Letters:", str_collapse(letters), width = 25), sep = "\n")
Run the code above in your browser using DataLab