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 April 4, 2024, 8:10 p.m.