Skip to content
Back to formatted view

Raw Message

Message-ID: <ta81lt0esgi6m9iboo0unu477jvbrlieep@4ax.com>
Date: 2001-07-14T19:48:06Z
From: Duncan Murdoch
Subject: how to type long string
In-Reply-To: <20010714180848.80038.qmail@web10104.mail.yahoo.com>

On Sat, 14 Jul 2001 11:08:48 -0700 (PDT), you wrote:

>Hi, All:
>
>I try to type some long string in R console, whenever
>I like to change to a new line, I get error message.

There are two ways.  End each line with a backslash, i.e.

  s <- 'Start of long string\
second line of long string'

This puts a \n in the string.  I don't know if there's a way to avoid
that on input, but you case use paste:

 s <- paste('Start of long string',
'second part of long string')

Duncan Murdoch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._