title: Line breaks in directory using knitr/R Markdown
body: <p>I'm currently working with R Markdown and trying to get the code, results and documentation to one pdf-file with the knit function in the end.</p>
  
  <p>Within in the document, I want to set my directory with the setwd command.</p>
  
  <pre><code>setwd("C:/Users/Testuser/Documents/Testfolder/Testsubfolder/Testsubfolder2/Testsubfolder3/Testsubfolder4/Testsubfolder5")
  </code></pre>
  
  <p>However, the file path exceeds the width of the pdf and there is no line break so part of it is cut off at the right side. When I try to insert a page break manually, for example by pressing Enter after "Testdubfolder2", I get the following Error message: </p>
  
  <blockquote>
    <p>"Fehler in setwd("C:/Users/Testuser/Documents/Testfolder/Testsubfolder/Testsubfolder2/\n
    Testsubfolder3/Testsubfolder4/Testsubfolder5") : kann Arbeitsverzeichnis nicht wechseln."</p>
  </blockquote>
  
  <p>, which in English simply means, that the directory can't be changed. Is there any way to display the file path over two lines using the knit function? I'd be grateful for any solution or hint.</p>