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

Gábor Csárdi csardi.gabor at gmail.com
Wed Jun 14 13:17:05 CEST 2017


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

[...]



More information about the R-devel mailing list