title: How can I save everything from console
body: <p>I am a beginner working in r, how do you save everything from console, your commands, as well as the output, everything that appears in the console.</p>
  
  <p>Only things that I could come up with is sink(...), before starting the session. i.e.</p>
  
  <pre><code>sink("dataout.txt")
  </code></pre>
  
  <p>but then nothing appears in the console everything(except plots) goes to dataout.txt file.  What I need is to be able to look at what I have done throughout any given session after dabbling around. 
  thx</p>