Code chunk options

Reportistica con R Markdown

Amy Peterson

Head of Core Curriculum at DataCamp

The data code chunk

Data code chunk

Reportistica con R Markdown

The data code chunk

Data code chunk with include equals FALSE option

Reportistica con R Markdown

The include option

Markdown file with include equals FALSE

Knit file with include equals FALSE

Reportistica con R Markdown

The echo option

Markdown file with code to create line plot with echo equals FALSE

Knit file with code to create line plot with echo equals FALSE

Reportistica con R Markdown

The eval option

Markdown file with code to create table with eval equals FALSE.png

Knit file with code to create table with eval equals FALSE.png

Reportistica con R Markdown

Code option summary

Code is run Code appears in report Results appear in report
include = FALSE Yes No No
echo = FALSE Yes No Yes
eval = FALSE No Yes No
Reportistica con R Markdown

The collapse option

Markdown file without collapse option specified

Knit file with default collapse option

Reportistica con R Markdown

The collapse option

Markdown file with collapse equals TRUE

Knit file with collapse equals TRUE

Reportistica con R Markdown

Let's practice!

Reportistica con R Markdown

Preparing Video For Download...