Re: [Rd] Warning on backslash sequences (was sprintf behavior)

From: Peter Dalgaard <>
Date: Thu 28 Sep 2006 - 15:15:27 GMT

"Gabor Grothendieck" <> writes:

> That's a good idea for the case I mentioned although there is still
> the case where one requires a single quoted string (maybe for
> generating code for some other language) and that is
> not handled by deparse.

Yes, but there be devils lurking in there. I think you do in general need to know what the other language is. Take a look at shQuote(), for instance. (Why, BTW, does that not simply "escape" single quotes using '"'"' instead of switching to double-quotes and escaping everything in sight?)

   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (                  FAX: (+45) 35327907

______________________________________________ mailing list
Received on Fri Sep 29 01:23:21 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 28 Sep 2006 - 15:30:10 GMT.

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