R markdown

  • combination of text, (R)code, and data
  • documentation of all analysis steps (for us and our readers)
  • quickly updating and repeating analysis
  • communication of analysis / results
  • producing texts, website, supplementary materials, walkthroughs, APA style manuscripts, slides
  • easy cross referencing of tables and figures, citations
  • automatically compiling reference lists
  • compiles into .pdf, .html, .docx, .doc
  • some knowledge of LaTeX useful for cross-referencing, using additional features (LaTeX add-ons), writing equations

Setup

install.packages("rmdformats")

or

install.packages("remotes")
remotes::install_github("juba/rmdformats")

From the R-Studio menu …

  • File > New File > R Markdown
  • Document (PDF, WORD, HTML)
  • from template:
    • e.g. readthedown or robobook for documents
    • rmdshower::shower_presentations for slides

Documents

  • example: https://rpubs.com/jensroes/765467
  • online sharing on RPubs (“Publish”)
  • create from template:
    • File > New File > R Markdown
    • robobook
  • we’ll develop a robobook markdown together with all fundamental features

APA manuscripts using papaja

Task

  • Reproduce analysis in apa7_template.Rmd
  • Redo analysis for either dominant or non-dominant hand or foot: change as little code as possible

References

Roeser, Jens, Sven De Maeyer, Mariëlle Leijten, and Luuk Van Waes. 2021. “Modelling Typing Disfluencies as Finite Mixture Process.” Reading and Writing, 1–26.