January 14, 2020
When you run R Markdown, you are knitting together plain Markdown text and R code.
knitr is the engine.
We will generate the following files:
We will also use the following files
bookdownwill automatically import
rmarkdownpacakges as well. Install it by entering the following code into your R console:
install.packages(c("bookdown", "tidyverse")) # includes rmarkdown, knitr
Note: Workflow for a thesis is a slightly different beast.
YAML (rhymes with camel): The header that tells R Markdown how to generate your document. Indentation and spacing are very important.
title: "Untitled" author: "Thea Knowles" date: '2018-02-18' output: word_document
title: "A very important title" subtitle: "A less important subtitle" author: - Thea Knowles^1^, Thea Knowles' Alter Ego^2^ - ^1^Western University, ^2^University of Western Ontario date: "14 January, 2020" output: bookdown::word_document2: fig_caption: yes md_extensions: +footnotes reference_docx: custom_reference.docx toc: yes date: "Last updated: ` r format(Sys.time(), '%d %B, %Y')`"