Send Your R Code to 'Tidy Data Tutor'

Visualize your 'Tidyverse' data analysis pipelines via the 'Tidy Data Tutor'(< https://tidydatatutor.com/>) web application.


tidydatatutor

R-CMD-check

Connect R and RStudio to Tidy Data Tutor.

Installation

You can install the development version of tidydatatutor from GitHub with:

# install.packages("remotes")
remotes::install_github("seankross/tidydatatutor")

Getting Started

Send a string of code to Tidy Data Tutor:

code = 
"library(dplyr)
library(palmerpenguins)

penguins %>%
  select(species, bill_length_mm) %>%
  group_by(species) %>%
  arrange(desc(bill_length_mm), .by_group = TRUE) %>% 
  slice(1)"
  
tidydatatutor::go_code(code)

Copy the following code into the clipboard:

library(dplyr)
library(palmerpenguins)

penguins %>%
  select(species, bill_length_mm) %>%
  group_by(species) %>%
  arrange(desc(bill_length_mm), .by_group = TRUE) %>% 
  slice(1)

Then open it in Tidy Data Tutor by running this in the console:

tidydatatutor::go_paste()

R Markdown Support

Generate links to Tidy Data Tutor in R Markdown with named R code chunks:

---
output: md_document
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(message = FALSE)
library(tidydatatutor)
```

```{r mtcars-1}
library(dplyr)

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

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

RStudio Add-in

Access Tidy Data Tutor from the Addins drop down menu in RStudio:

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tidydatatutor")

0.1.0 by Sean Kross, 5 years ago


https://github.com/seankross/tidydatatutor


Report a bug at https://github.com/seankross/tidydatatutor/issues


Browse source code at https://github.com/cran/tidydatatutor


Authors: Sean Kross [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports clipr, knitr, rstudioapi

Suggests rmarkdown, dplyr, testthat


See at CRAN