R/loadData.R

Defines functions loadData

Documented in loadData

#' Load data with given file name
#'
#' @param fileName the name of the file stored in the extdata directory to load
#'
#' @return the file as an R object

loadData <- function(fileName) {
  fp <- paste0(find.package("coproanalysis")[1], "/extdata/", fileName)
  readRDS(fp)
}
Timothy-Barry/coproanalysis documentation built on Feb. 12, 2020, 7:33 a.m.