title: How to make a great R reproducible example
body: <p>When discussing performance with colleagues, teaching, sending a bug report or searching for guidance on mailing lists and here on Stack&nbsp;Overflow, a <a href="https://stackoverflow.com/help/mcve">reproducible example</a> is often asked and always helpful.</p>
  
  <p>What are your tips for creating an excellent example? How do you paste data structures from <a href="/questions/tagged/r" class="post-tag" title="show questions tagged &#39;r&#39;" rel="tag">r</a> in a text format? What other information should you include?</p>
  
  <p>Are there other tricks in addition to using <code>dput()</code>, <code>dump()</code> or <code>structure()</code>?  When should you include <code>library()</code> or <code>require()</code> statements?  Which reserved words should one avoid, in addition to <code>c</code>, <code>df</code>, <code>data</code>, etc.?</p>
  
  <p>How does one make a great <a href="/questions/tagged/r" class="post-tag" title="show questions tagged &#39;r&#39;" rel="tag">r</a> reproducible example?</p>