R/phenotypingTemplate.R

Defines functions phenotypingTemplate

Documented in phenotypingTemplate

#' Phenotyping template
#' @description Export a copy of the oak phenotyping data collection spreadsheet.
#' @param path directory path for export output
#' @examples 
#' \dontrun{
#' phenotypingTemplate()
#' }
#' @export

phenotypingTemplate <- function(path = '.'){
  template_path <- system.file('template/phenotyping_template.xlsx',package = 'pdi')
  template_base <- basename(template_path)
  
  invisible(file.copy(template_path,str_c(path,template_base,sep = '/')))
}
jasenfinch/pdi documentation built on Feb. 13, 2021, 2:20 p.m.