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.
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 https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.