title: R paste string with collapse - How to keep string with quotes?
body: <p>I have a problem with the quotes in pasting two strings together.</p>
  
  <p>I want an output like this: query= "sql query","port"</p>
  
  <p>I tried:</p>
  
  <pre><code>      query&lt;-c("sql query","port")
        paste(queryString,collapse=",")
  </code></pre>
  
  <p>which gives:"sql query,port"</p>
  
  <p>Also tried this:</p>
  
  <pre><code>        query&lt;-c("sql query")
          query&lt;-paste(query,"port",sep=",")
  </code></pre>
  
  <p>which also gives: "sql query,port"</p>
  
  <p>Without the quotes in the right place the query won't run.
  How can I keep them ? </p>