Re: [Rd] Quoting

From: Peter Dalgaard <>
Date: Wed, 23 May 2007 01:05:54 +0200

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. mailing list Received on Tue 22 May 2007 - 23:09:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 May 2007 - 00:33:35 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.