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)
}

Try the OCSdata package in your browser

Any scripts or data that you put into this service are public.

OCSdata documentation built on Aug. 20, 2021, 9:07 a.m.