R for reproducible scientific documents: knitr, rmarkdown, and beyond