how to write an academic paper using R Markdown
with advice on including R output (code), references, figures, tables etc.
R markdown file in markpaper.Rmd
pdf output in markpaper.pdf
Consult both side by side to see what to do and how it works.
Idea: put screenshots of code in output.