From pdalgd at gmail.com  Fri Jun 16 22:17:55 2017
From: pdalgd at gmail.com (peter dalgaard)
Date: Fri, 16 Jun 2017 22:17:55 +0200
Subject: [Rd] [WISH / PATCH] possibility to split string literals across
 multiple lines
In-Reply-To: <f9fe4bb1-d2b4-895e-ceb1-5497c197c3f2@gmail.com>
References: <mailman.5.1497607202.2257.r-devel@r-project.org>
 <20170616180425.GA24745@mail.cs.toronto.edu>
 <f9fe4bb1-d2b4-895e-ceb1-5497c197c3f2@gmail.com>
Message-ID: <E96C549C-4C26-4CBE-BE70-DCBB67B050C3@gmail.com>


> On 16 Jun 2017, at 21:17 , Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> 
> paste0("this is the first part",
>        "this is the second part")
> 
> If the rather insignificant amount of time it takes to execute this function call really matters (and I'm not convinced of that), then shouldn't it be solved by the compiler applying constant folding to paste0()?

And, of course, if it is equivalent to a literal, it can be precomputed. There is no point in having it in the middle of a tight loop. 

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



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