Skip to content

Instantly share code, notes, and snippets.

@stephenturner
Created September 14, 2015 16:05
Show Gist options
  • Save stephenturner/8eeb8ffec7c47fc6efc9 to your computer and use it in GitHub Desktop.
Save stephenturner/8eeb8ffec7c47fc6efc9 to your computer and use it in GitHub Desktop.
---
title: "Untitled"
author: "Stephen Turner"
date: "September 14, 2015"
output: html_document
---
# Introduction
Here's some introductory text in the document that I'm actually compiling.
# Authoring RMarkdown documents
Here's a tutorial on how we make RMarkdown documents from scratch. Type this into your .Rmd file:
# Demo header
Demo text here.
```{r}
data(mtcars)
head(mtcars)
```
The mean of mpg is `r mean(mtcars$mpg)`.
Now we're back out of the demo file and back in the document I want to compile again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment