title: Extract what was printed deep in the R console
body: <p>When I execute commands in <code>R</code>, the output is printed in the console. After some threshold (I guess, some maximum number of lines), the R console no longer shows the first commands and their output. I cannot scroll up that far because it is simply no longer there. </p>
  
  <p><strong>How can I access this "early" output if it has disappeared from the console?</strong></p>
  
  <p>I care mostly about error messages and messages generated by my own script. I do use a script file and save my results to a file, if anyone wonders, but this still does not help solve my problem.</p>
  
  <p>(I have tried saving the <code>R workspace</code> and <code>R history</code> and then loading it again, but did not know what to do next and was not able to find what I needed...)</p>