title: How do you evaluate variable as option name in R?
body: <p>I have two variables, as follows:</p>
  <pre><code>tokenName = &quot;myToken&quot;
  tokenResult = &quot;myResult&quot;
  </code></pre>
  <p>I'd like to set <code>options()</code> where I evaluate the variable <code>tokenName</code> and set that option as <code>myResult</code>.</p>
  <p>Essentially I want the equivalent of <code>options(myToken = tokenResult)</code>, but using the variable <code>tokenName</code>.</p>
  <p>I tried <code>options(eval(tokenName) = tokenResult)</code> but to no avail. Does anyone have any ideas?</p>