Have:
long_string = "Here is a verbose, lengthy, no good and very long string literal that is definitely longer than 80 characters but should not have any newlines in it and it would be great if it was pleasantly formatted."
Want:
long_string = "Here is a verbose, lengthy, no good and very long string literal
that is definitely longer than 80 characters but should not have
any newlines in it and it would be great if it was pleasantly formatted."
The latter, of course, inserts newlines ("\n") and spaces where I try to break and format the line.
To be clear, my question is about formatting the representation of long_string
in the source code. I do not want to
transform the string that long_string
references.
In other language (C for instance), there is a line continuation operator \
-- that would be a perfect solution for my problem (if such an operator existed in R!)