title: Renaming Objects in RStudio context sensitive within entire Project
body: <p>I have an issue when developing an R project using RStudio.  I create an object, and then realise later, that I want to give it another name. I then have to manually change the name, which in larger projects is annoying and often results in errors, as I easily oversee one line. The <code>replace</code> <code>all</code> function of RStudio doesn't quite match the name I am trying to replace, as it only does so in one file, it also doesn't consider only the references of the variable see sample code:</p>
  
  <pre><code>f &lt;- function(a){
      b &lt;- a
  return(a+b)
  }
  a &lt;- 5;
  a &lt;-  a + f(1)
  </code></pre>
  
  <p>In that sample, I'd like to rename <code>a</code> <strong>only</strong> inside the function. I'd have to do that thrice, while <code>replace</code> <code>all</code> would mess up my code <strong>outside</strong> the function. I don't want to edit that <code>a</code>. I.e. Visual Studio has an option of renaming a variable using the hotkey: <code>Ctrl</code> + <code>.</code>. Then Visual Studio renames the variable and its references in the entire project, <strong>without</strong> editing equally named variables that don't have a reference to the edited one. I haven't been able to find an option like that in RStudio. Is there an equivalent?</p>