build-package/build-functions/function_file_text.R

file_text <- function(x){
  purrr::map_chr(x, function(x){
    if (fs::is_file(x)) {
      readr::read_file(x)
    } else {
      dir <- fs::dir_info("R")
      glue::glue_collapse(dir$path, sep = ",")
    }
  })
}
JanCaha/r_package_qgis documentation built on Nov. 3, 2024, 5:25 p.m.