Skip to content

do not execute newline command

2 messages · Lorenzo Cattarino, Kenn Konstabel

#
On Tue, Apr 5, 2011 at 10:40 AM, Lorenzo Cattarino
<l.cattarino at uq.edu.au> wrote:
You can "escape" the newline symbol (i.e., write an extra \ before it):

Repeat <- "
myvec <- c(1:12)
cat('vector= ', myvec, '\\n')
"

write (Repeat, 'test.R')