Does anyone know how to display text output into an R markdown file? I haven't seen any tutorial cover what I want to do, which is take input from a shiny app and use that for a for loop in my code which will create a text document, which is what I want to display. I don't want to write all of the code I have because it is quite long and isn't necessary, but can anybody at least point me in the write direction?