zzz/has_yaml_header.R

get_files_with_yml_header <- function(...) {
  lf <- list.files(...)

  tibble::tibble(files = lf) %>%
        dplyr::mutate(has_yaml = purrr::map_lgl(files, has_yaml_header))
}
fmichonneau/ymlplyr documentation built on May 4, 2019, 3:08 a.m.