Similar to strwrap
but returns a single string with
linefeeds inserted
linebreak(s, width = getOption("width") - 2, indent = 0, offset = 0,
split = " ", FORCE = FALSE, FULL_FORCE = FALSE)
a character vector.
a positive integer giving the column for inserting linefeeds
an integer giving the indentation of the first line of
the paragraph; negative values of indent
are allowed and reduce
the width for the first line by that value.
a non-negative integer giving the indentation of all but the first line.
regular expression used for splitting. Defaults to whitespace.
Words are force-split if the available width is too small.
Lines are split exactly at the specified width irrespective of whether there is whitespace or not.
a character vector