title: Turn character strings into named function arguments
body: <p>I have an R script I intend to call from the command line, which includes a function which may take option <code>...</code> arguments. I'd like to parse any arguments given at the command line as arguments in <code>...</code>. How might I do this?</p>
  
  <p>I've tried the rlang package. I thought something like this would work:</p>
  
  <pre><code>z &lt;- c('x=1', 'y=2') #but actually, z &lt;- commandArgs(T)
  c(UQS(z))
  </code></pre>
  
  <p>Here I would expect to get a vector as if I had called <code>c(x=1, y=2)</code>. Instead I get a list of names <code>x=1</code> &amp;c.</p>