Skip to content
Back to formatted view

Raw Message

Message-ID: <3AE19F0A.28006599@statistik.uni-dortmund.de>
Date: 2001-04-21T14:54:02Z
From: Uwe Ligges
Subject: quotes in strings

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