R/herbarium_template.R

Defines functions herbarium_template

Documented in herbarium_template

#' Download herbarium template from website
#'
#'gets the most recent herbarium template from the website
#'
#' @return
#' @export
#'
#' @examples  #herbarium_template()
herbarium_template <- function() {
  #get herbarium template
  beaty_link <- "https://beatymuseum.sites.olt.ubc.ca/files/2019/11/Master-Collector-Excel-Templates.xlsx"
  temp_path <- tempfile("herbarium_template.xlsx")
  download.file(beaty_link, "templates/herbarium_template.xlsx")
  collector_template <- readxl::read_xlsx(temp_path, 
                                          sheet = "Collector Algae Sheet", skip = 4)
}
martonelab/ptm documentation built on July 13, 2020, 10:36 p.m.