title: Breaking from function not loop in R
body: <p>Ok so I am writing a larger function that call a few functions.  </p>
  
  <p>The issue is that I need to break out of "function_inner" under certain logical conditions without breaking out of "function_outer".  Break seems to work for loops, and stop, well it stops all functions... any ideas?</p>
  
  <pre><code>function_outer &lt;- function(){
  
      beta =1
          function_inner &lt;- function(beta){
          if (beta==1){?break?stop}
          print("Its not working")
           }
      return(beta)
  }
  </code></pre>