From p.dalgaard at biostat.ku.dk  Wed May 23 01:05:54 2007
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Wed, 23 May 2007 01:05:54 +0200
Subject: [Rd] Quoting
In-Reply-To: <200705221742.13361.vdergachev@rcgardis.com>
References: <46532F64.9030203@ebi.ac.uk>	<200705221601.25573.vdergachev@rcgardis.com>	<46535983.9040909@stats.uwo.ca>
	<200705221742.13361.vdergachev@rcgardis.com>
Message-ID: <46537752.6020003@biostat.ku.dk>

Vladimir Dergachev wrote:
>
>> I think DTL's suggestion would be most useful when putting a lot of code
>> in a string, where the escapes make the code harder to read.  For
>> example, just about any function using a complicated regular expression.
>>     
>
> Also anything using .Tcl(). Quotes in data frame definition are useful because 
> they could be employed to delimit text fields with spaces in them.
.Tcl() is usually the wrong solution anyway, you really should use tcl() 
unless absolutely necessary.

In some contexts (probably not when using source() ), 
read.table(stdin())  does the trick too, as does reading from a pipe() 
connection, at least on Unix/Linux. The latter can be useful to filter 
out prompt characters.



[Rd] Quoting
Peter Dalgaard