> On 16 Jun 2017, at 21:17 , Duncan Murdoch <murdoch.dun...@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....@cbs.dk  Priv: pda...@gmail.com

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to