[R] quotes in strings

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Apr 21 16:54:02 CEST 2001



Erich Neuwirth wrote:
> 
> i need to build a string
> containing a quote.
> how can o do that?
> 
> the reason is i need a system call
> and windows path names may contain blank
> the system call i need is similar to
> 
> "c:\Program Files\My Programs\myprog.exe" myfile.txt
> 
> so i have to build a string
> abd then this tring is used as an argument
> ro
> system()
> and there it need outer quotes also.
> 
> how can i manage?


What about something like
 cat("\"Erich\" \"Neuwirth\"")

Uwe
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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