title: How to output string data on separate lines on Rmarkdown document
body: <p>I am using a dataframe (called "Survey") from survey data in which the final question is an open comment box. Hence, my final vector in the dataframe consists of string data. I am attempting to create a report in R Markdown in which each comment (each row of that string vector) appears on a separate line in the outpout. My first attempt was to simply insert the variable name into a line of r code within my markdown window, as such:</p>
  
  <p><code>r Survey$Comments</code></p>
  
  <p>This resulted in the comments all appearing in one big chunk, with a comma separating each comment. I then attempted to use the "cat" function as follows:</p>
  
  <p><code>r cat(Survey$Comments, sep="\n")</code></p>
  
  <p>When I run this code in my regular R console window (not in R Markdown), it gives me the output I want (each comment on its own line), but does not work the same way when I run it in markdown. I'm at a loss as to how to get the output I need, and thought I'd turn to the broader community to see if anyone has any advice.</p>