[Rd] [WISH / PATCH] possibility to split string literals across multiple lines

Gábor Csárdi
Wed, 14 Jun 2017 11:17:05 -0000

On Wed, Jun 14, 2017 at 12:12 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 14/06/2017 5:58 AM, Andreas Kersting wrote:
>>
>> Hi,
>>
>> I would really like to have a way to split long string literals across
>> multiple lines in R.

You can also look at the glue package, it supports continuation and a lot more:

glue("
    A formatted string \\
    can also be on a \\
    single line
    ")
#> A formatted string can also be on a single line

Gabor …