From csardi.gabor at gmail.com  Wed Jun 14 13:17:05 2017
From: csardi.gabor at gmail.com (=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=)
Date: Wed, 14 Jun 2017 12:17:05 +0100
Subject: [Rd] [WISH / PATCH] possibility to split string literals across
 multiple lines
In-Reply-To: <85c4570d-fac2-7715-487a-b175cb54a098@gmail.com>
References: <73ec8f95-9607-80ee-0e37-ff0d739d289d@akersting.de>
 <85c4570d-fac2-7715-487a-b175cb54a098@gmail.com>
Message-ID: <CABtg=KngLWeUVgDWaEv1MWuvwBrOzbDxnTMRGRpEtbVknZF-3Q@mail.gmail.com>

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

[...]



[Rd] [WISH / PATCH] possibility to split string literals across multiple lines
=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=