# NOT RUN {
if (!require(dplyr)) stop("Examples need dplyr to run")
mtcars %>%
filter(am == 1) %>%
select(qsec) %>%
print_pipe_steps() -> result
my_print_cmd <- c(
"message(title);",
"skimr::skim_tee(data = ps%d)"
)
mtcars %>%
select(am, hp, mpg) %>%
group_by(am) %>%
print_pipe_steps(my_print_cmd, all = TRUE) %>%
summarize(
nobs = n(),
mean_hp = mean(hp),
mean_mpg = mean(mpg)
)
# }
Run the code above in your browser using DataLab