Skip to content
Prev 63061 / 63424 Next

Specifying a long string literal across several lines

On 5/28/25 04:15, Pavel Krivitsky via R-devel wrote:
What would be real example of a long string literal you would want to 
enter this way?

For entering a long text with newlines, one can use raw strings in R 
(see ?Quotes) - but there you would see the newlines and indentation. 
I've seen code where? "paste0" has been aliased to a local function 
named with a single letter to make concatenation more concise.

Best
Tomas