R/load_repo.R

Defines functions load_repo

Documented in load_repo

#' Internal Function
#'
#' This is not to be used directly by the users.
#'
#' @export
#' @importFrom usethis use_zip
#' @keywords internal
#'
load_repo <- function(casestudy, outpath=NULL){
  if (is.null(outpath)) {
    outpath = getwd()
  }
  use_zip(paste0('opencasestudies/',casestudy), destdir = outpath,
                     cleanup = TRUE)
}
mbreshock/OCSdata documentation built on July 24, 2024, 9:47 a.m.