[Rd] Warning on backslash sequences (was sprintf behavior)
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Thu Sep 28 17:15:27 CEST 2006
"Gabor Grothendieck" <ggrothendieck at gmail.com> 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
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-devel
mailing list