Skip to content
Prev 255828 / 398506 Next

do not execute newline command

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')