R/ingest_version.R

Defines functions ingest_version

Documented in ingest_version

#' Identify template version
#'
#' @param path filepath to MMD Collection Tool
#'
#' @export
#'
#' @examples
#' \dontrun{
#' #extract tool version
#'   path <- "~/MMDData/MMD National Data Collection Tool PEPFARlandia.xlsx"
#'   ingest_version(path) }

ingest_version <- function(path){

  readxl::read_xlsx(path,
                    sheet = "1. Overview and Instructions",
                    n_max = 1) %>%
    dplyr::pull()
}
USAID-OHA-SI/ingestMMD documentation built on July 31, 2019, 7:36 a.m.