title: Automatic linebreak knitr xtable (R/Latex)
body: <p>I'm trying to do a <code>xtable</code> with long sentences at each row in my PDF document generated with <code>knitr</code>.</p>
  
  <p>I tried that :</p>
  
  <pre><code>&lt;&lt;echo=F,results="asis",command=NA&gt;&gt;=
  df&lt;-c("This is a very very very very very very very very very very very very very very very very very very very very long line",
  "Another very very very very very very very very very very very long line")
  df&lt;-as.data.frame(df)
  xtab &lt;- xtable(df)
  print.xtable(xtab,sanitize.text.function=function(x){x})
  @
  </code></pre>
  
  <p>But my result is :</p>
  
  <p><a href="https://i.stack.imgur.com/b7zP0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b7zP0.jpg" alt="enter image description here"></a></p>
  
  <p>As you can see. My xtable overflow the page because my lines are too long. Can someone help me ?</p>
  
  <p>PS : I can't use <code>{tabular}</code> because the length of my data frame depend of a shiny app user's input.</p>