title: R match.call : how to pass a variable to this function?
body: <p>I'm using the <code>osqp</code> package, in which there is an <code>osqpSettings</code> function, which code can be found <a href="https://github.com/cran/osqp/blob/master/R/params.R" rel="nofollow noreferrer">there</a> (you can just run this code ithout installing the package if you want, the result is the same). Calling : </p>
  
  <pre><code>osqpSettings(verbose = TRUE)
  </code></pre>
  
  <p>or : </p>
  
  <pre><code>osqpSettings(verbose = FALSE)
  </code></pre>
  
  <p>works as expected. </p>
  
  <p>But calling any of these :  </p>
  
  <pre><code>my_verbose = TRUE
  osqpSettings(verbose=my_verbose)
  osqpSettings(verbose=1&gt;0)
  osqpSettings(verbose=eval(1&gt;0))
  osqpSettings(verbose=eval(my_verbose))
  </code></pre>
  
  <p>does not work with the following error : </p>
  
  <pre><code>Error in checkpar(inpars[[nm]], defaultOsqpSettings[[nm]]) : 
    l'objet 'pairlist' ne peut être converti automatiquement en un type 'logical'
  Called from: checkpar(inpars[[nm]], defaultOsqpSettings[[nm]])
  </code></pre>
  
  <p>(the french part translate to 'object cannot be automaticaly converted to a type' ).
  I suspect this is the <code>match.call()</code> method that this function uses that does not accept code in it's parameters. How can i pass a variable as a parameter (without calling the function if a <code>if(my_verbosity)</code>...).</p>