README.md

tidyverseInPackagesTest

The goal of tidyverseInPackagesTest is to demo the use of tidyverse functions in the development of new packages.

This is an example as part of the "Building tidy tools" workshop at rstudio::conf 2020

Installation

You can install the released version of tidyverseInPackagesTest from GitHub with:

devtools::install_github("tidyverseInPackagesTest")

Example

This is a basic example which shows you how to solve a common problem:

library(tidyverseInPackagesTest)
## basic example code

Notes

Indirection

See tidy evaluation. Two methods of fixing:

1. Using square brackets

not recommended:

cyl_plot <- function(var){ ggplot2::ggplot(mtcars) + ggplot2::geom_bar(ggplot2::aes(.data[[var]])) + ggplot2::coord_flip()}

2. Using "embracing"

This is basically the latest way of doing quoting/unquoting.



nayefahmad/tidyverseInPackagesTest documentation built on Feb. 4, 2020, 6:20 p.m.