R/utility.functions.R

Defines functions get.path

Documented in get.path

#' Return the complete path to a demo model Excel workbook
#'
#' @export
#'
#' @param x a character element representing a file name ("demo.model.1.xls", "demo.model.3.xls", "demo.model.4a.xls", "demo.model.4b.xls").
#'
#' @examples
#' path.to.demo.model <- get.path("demo.model.1.xls")
#' 
#' @return a character element representing the complete path to the file. If the file cannot be found, an empty element will be returned.

get.path <- function(x) {
  system.file("extdata", x, package = "no.name")
}
barnzilla/no.name documentation built on Oct. 14, 2020, 3:25 p.m.