Skip to content

Instantly share code, notes, and snippets.

@mine-cetinkaya-rundel
Created August 13, 2020 22:06
Show Gist options
  • Save mine-cetinkaya-rundel/a393d3417767f902f3e23bce3da21686 to your computer and use it in GitHub Desktop.
Save mine-cetinkaya-rundel/a393d3417767f902f3e23bce3da21686 to your computer and use it in GitHub Desktop.
---
output: learnr::tutorial
runtime: shiny_prerendered
---
```{r setup, include=FALSE}
library(learnr)
```
## Exercise with Hint
Modify the following code to limit the number of rows printed to 5:
```{r print-limit, exercise=TRUE, exercise.eval=TRUE}
mtcars
```
<div id="print-limit-hint-1">
**Hint:** What about `head()`?
</div>
```{r print-limit-hint-2}
head(mtcars)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment