R/render_geodata_ras.R

Defines functions render_geodata_ras

Documented in render_geodata_ras

#' function for rendering an markdown to get an html of available geodata
#' @param path The path where the data has to be stored
#' @param folder_name the name of the folder
#' @return a tibble where you have to set the parameters by hand.
#' @export
#' @examples
#' \dontrun{
#' render_geodata()
#' }

render_geodata_ras <-
  function(path, folder_name) {
    rmarkdown::render(here::here("R", "geodata_template_raster_html.Rmd"),
                      output_format = "html_document",
                      output_dir = path,
                      output_file = unlist(stringi::stri_split(path, regex = "/"))[length(unlist(stringi::stri_split(path, regex = "/")))])
  }
EcoDynIZW/d6geodata documentation built on Sept. 30, 2024, 2:15 p.m.