R/get_names.R

Defines functions get_names

Documented in get_names

#' Get the data and function names from each step of the pipeline.
#'
#' @param verbs A [base::list()] of verbs from [get_verbs()].
#' @importFrom purrr map
#' @export
get_names <- function(verbs) {
  verbs %>%
    map(~ if(is.name(.x)) {.x} else {.x[[1]]})
}
seankross/mario documentation built on Dec. 22, 2021, 11:15 p.m.