title: Printing long code block R markdown pdf
body: <p>I am trying to print a long code, highlighted with R syntax, at the end of my thesis, written in R markdown. I am knitting to pdf. I receive the error: <code>! Dimension too large</code>.  </p>
  
  <p>I am copy pasting my code into the document:</p>
  
  <p><code>```R
  Pasted code
  ```</code></p>
  
  <p>I was wondering if there is a way to avoid the error when printing my code in R markdown. </p>