title: Source a function from example() in R
body: <p>When using <code>pairs()</code> I like using the suggested functions <code>panel.cor</code> and <code>panel.hist</code> (which are suggested in the examples) to eliminate the duplicated upper or lower triangular space and provide extra information.  </p>
  
  <p>I would like to source those functions using something like</p>
  
  <pre><code>source(example(pairs, ask = F, echo = F))
  </code></pre>
  
  <p>and not get any output (including: <code>Error in readLines(file, warn = FALSE) : 'con' is not a connection</code>), <em>and</em> not have the example plots print. Is this possible? </p>
  
  <p>As I side note, the reason I'd like the plots not to print is that I want to use this in an <strong>R</strong> Markdown file and not have to look at the <code>example(pairs)</code> plots in my document.</p>