tdt_chunk {tidydatatutor}R Documentation

Create a Link to Tidy Data Tutor from an R Code Chunk

Description

Create a Link to Tidy Data Tutor from an R Code Chunk

Usage

tdt_chunk(chunk)

Arguments

chunk

The name of an R code chunk in the current R Markdown document.

Value

A string with an appropriately formatted URL to Tidy Data Tutor.

Examples

## Not run: 

<!--- In an R Markdown document: --->
```{r mtcars-1}
library(dplyr)

mtcars %>%
  select(mpg, cyl, hp) %>%
  group_by(cyl) %>%
  summarise(mean(hp))
```

[See this pipeline in Tidy Data Tutor](`r tdt_chunk("mtcars-1")`)

## End(Not run)

[Package tidydatatutor version 0.1.0 Index]