Download the repository, either:
- By clicking on the green code box in the right corner
- If you have the
use_this
package installed this can be done from within R using
usethis::use_course(url = "https://github.com/MattBixley/Markdown_Lessons/archive/master.zip",
destdir = "~/Desktop")
After opening the R Project, make sure to run this code beforehand to make sure you are all set up.
# RUN THE FOLLOWING TO SET UP REQUIRED PACKAGES AND DATA
# BEFORE FIRST COMPILING THIS RMD
# (only need to do once)
source("scripts/setup.R")
- Objectives
- Write a reproducible report
- set up
- code chunks
- tables
- plots
- captions/figures
- citations
- Objectives
- report template
- msword
- pdfs
- parameters
- input
- output
- bookdown
- cross references
- report template
More detailed tutorials and examples can be found at the following
RStudio/RMarkdown
R Markdown for Scientists
R Markdown: The Definitive Guide
R for Data Science
The Palmer Penguins dataset used can be found here