title: to manipulate input variable in the set of arguments of R function
body: <p>I am trying to solve the issue of input variable manipulation in R function. The function is as follows:</p>
  
  <pre><code>testFun&lt;-function(x,y){
     x+y
  }
  </code></pre>
  
  <p>I  want to run in such a way:  </p>
  
  <pre><code>testFun(x=1,y=5+x)
  </code></pre>
  
  <p>but the error is generated:</p>
  
  <blockquote>
    <p>Browse[1]> testFun(x=1,y=5+x)<br>
    Error during wrapup: object 'x' not found</p>
  </blockquote>
  
  <p>From the argument evaluation poin of view it is a mistake. So I need to have 'x' either a default value or outside value (details I have scanned in <a href="http://adv-r.had.co.nz/Functions.html#function-arguments" rel="nofollow">http://adv-r.had.co.nz/Functions.html#function-arguments</a>).</p>
  
  <p>So <strong>my question</strong> is whether it is possible to make such a manipulation in one row, without making a wrappers or outside values?  </p>
  
  <p>It is supposed to have the output:  </p>
  
  <p>run:  </p>
  
  <blockquote>
    <p>testFun(x=1,y=5+x)  </p>
  </blockquote>
  
  <p>output:  </p>
  
  <blockquote>
    <p>7</p>
  </blockquote>