title: Using R in the interactive shell with prewritten code
body: <p>Rather than trying to use:</p>
  
  <pre><code>R &lt; filename.r --vanilla
  </code></pre>
  
  <p>You can load prewritten code with </p>
  
  <pre><code>source ('filename.R')
  </code></pre>
  
  <p>This can also be added to an .RProfile file if it needs to be loaded each time.</p>