F.5 Resources
This section provides pointers to additional resources related to R Markdown.
F.5.1 R Markdown documentation
R Markdown is being actively developed by Posit (formely RStudio). To keep track of changes, the site at https://rmarkdown.rstudio.com is a good starting point.
For more detailed instructions on R Markdown see:
Chapter 27: R Markdown of the r4ds textbook
The R package rmarkdown (Allaire et al., 2024) and its documentation
The R package knitr (Xie, 2023) and its documentation at http://yihui.name/knitr/ (Xie, 2015)
Useful practical resources on R Markdown include (in increasing amount of detail):
A Markdown Quick Reference card is available in RStudio via
Help > Markdown Quick Reference.The R Markdown Cheatsheet, available in RStudio via
Help > Cheatsheets > R Markdown Cheat Sheet.
- The R Markdown Reference Guide, available in RStudio via
Help > Cheatsheets > R Markdown Reference Guide (see Figure (fig:cheat-70-rmarkdown-reference)).
F.5.2 R Markdown for scientific writing
Scientific writing is highly regulated by conventions and formatting guidelines. Articles and theses in psychology typically need to conform to the manuscript guidelines of the American Psychological Association (aka. APA style), whereas other disciplines and journals have different needs and requirements. Many publishers now offer templates that allow authors to focus on content, rather than formatting.
Helpful resources for preparing journal articles in R Markdown include:
papaja is an R package for using R Markdown to write articles conforming to the APA manuscript guidelines (and works with the popular LaTeX document class apa6).
rticles is an R package that provides R Markdown templates for various journal articles and conference submissions.
chi-proc-rmd-template provides an ACM CHI Proceedings template in R Markdown.
pandoc journal templates provides templates for various journals in biometrics and statistics.
F.5.3 Related resources
Additional resources related to R Markdown include:
CommonMark is a more strongly defined and compatible specification of the original Markdown (by John Gruber, in 2004) and provides a 60 second tutorial, plus an interactive 10 minute tutorial for learning Markdown.
Project Jupyter is a related project that develops open-source software, open-standards, and services for interactive computing across many programming languages (including R). Jupyter Notebook is an open-source web application that you can try here or at rnotebook.io.
Resources on literate programming and reproducible research include:
For background information on literate programming (Knuth, 1984), see
Donald Knuth on his book Literate Programming
Collection of quotes and sources
Wikipedia article on literate programming
For the related topic of reproducible research, see the CRAN Task View on Reproducible research.
Finally, using powerful writing tools includes a suitable editor and workflow:
- The RStudio IDE facilitates a project-oriented workflow in many ways.
The keyboard shortcuts for frequent commands in RStudio are shown via
Alt + Shift + K
or by selecting Help > Keyboard Shortcuts Help.
[80_rmarkdown.Rmd updated on 2024-10-16 22:07:22.286675 by hn.]