title: R disable traceback after evaluating stop function
body: <p>I am using a function for error handling, which is used in another function. This looks like: </p>
  
  <pre><code>foo &lt;- function() {
   fooo &lt;- function () {
      stop('Hello World')
    }
    fooo()
  }
  </code></pre>
  
  <p>Now upon calling <code>foo()</code>, R will provide a traceback option. However, if only <code>fooo()</code> is called (after running it as a stand alone function first) the <code>stop()</code> function will produce an error message without traceback. Ideally, I would prevent R from generating a traceback option and solely print the error message to the console. So.. How do I do this?</p>