title: How to evaluate a string expression for multiple arguments?
body: <p>I have an api wrapper function that accepts custom arguments in addition to some defined parameters. For my use case this function needs to accept a variable size of custom arguments so I construct these arguments as a string expression with the documented operators for this api to be evaluated and passed; I don't have a reproducible example since this is such a customized function, but I'm hoping the concept can get us somewhere. I am having an issue with parsing these multiple arguments as constructed. So for example below is the original function call:</p>
  <pre><code># original function
  my_function(arg1 = this,
              arg2 = that,
              period = 12,
              # here are the two arguments that get passed in this case unique ids for specific data
              &quot;0001q&quot; %.d% c(&quot;1y&quot;, &quot;2x&quot;, &quot;3z&quot;),
              &quot;0002q&quot; %.d% c(&quot;5u&quot;)
  )
  
  # my string expression
  my_string &lt;- &quot;'0001q' %.d% c('1y', '2x', '3z'), '0002q' %.d% c('5u')&quot;
  
  # what I want to do
  my_function(arg1 = this,
              arg2 = that,
              period = 12,
              # here are the two arguments that get passed in this case unique ids for specific data
              eval(parse(text = noquote(my_string)))
  )
  </code></pre>
  <p>When I attempt the above I get the following error:</p>
  <pre><code>Error in parse(text = ... unexpected ','
  </code></pre>
  <p>I understand <code>parse</code> is expecting only one argument and in this case is getting two of them. Is there a way I can evaluate <code>my_string</code> using another function or a parse variant that will accept the multiple arguments?</p>