Skip to content

Instantly share code, notes, and snippets.

@HeidiSeibold
Last active November 25, 2017 13:30
Show Gist options
  • Save HeidiSeibold/b289d7be6904914ecf8ec5f331917eeb to your computer and use it in GitHub Desktop.
Save HeidiSeibold/b289d7be6904914ecf8ec5f331917eeb to your computer and use it in GitHub Desktop.
Reprex for learnr issue: setup: error when two exercise chunks depend on one setup chunk
---
title: "Tutorial"
output: learnr::tutorial
runtime: shiny_prerendered
---
```{r setup, include=FALSE}
library(learnr)
```
## Topic 2
```{r read}
### To install the ddj package run:
# devtools::install_github("school-of-data/r-consortium-proposal", subdir="r-package")
data(introduction_raw, package = "ddj")
```
## Topic 3
Check out the names of the results data.frame.
```{r ex_look1, exercise=TRUE, exercise.setup = "read"}
```
```{r ex_look1-solution}
names(results)
```
Check out the names of the demographic1 data.frame.
```{r ex_look2, exercise=TRUE, exercise.setup = "read"}
```
```{r ex_look2-solution}
names(demographic1)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment