[R] passing ", betrayed by the non-vanishing \

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Apr 16 23:03:47 CEST 2002

"graham lawrence" <forporphyry at hotmail.com> writes:

> mtex[3]<-"I need\'s a \"double quote\" with no backslash"
> mtex[3]
> [1] "I need's a \"double quote\" with no backslash"
> so how is it done?  Thanks in advance,

You's got two of them in there already! Try cat(mtex[3], "\n")

Printing character strings will always escape double quotes,
backaslashes and various control characters. No way around that except
by using cat().

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list