How does he get the results of the chunk to display below the chunk in the markdown document (and not in the console?). Similarly, he creates tidy tabular output in the markdown doc - I cannot replicate this behavior. I am sure it has something to do with the options but I can’t see what his options are...
result chunks embedded rather than below in console are a feature of R Notebooks rather than R Markdown per se. look for R Notebook as a file type you can create in the new file menu of Rstudio.
Thanks! Looks like that works! Interestingly, it seems like once a library is loaded, the messages are suspended, so example, if I tried to load library(tidyverse) a second time, the output disappears and is no longer generated in the notebook.
I havent watched the video, but its the default behaviour for r notebook when the chunk would have multiple outputs that they get represented with 'buttons'